Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.3 MB / 235.5 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008401, allocations: 82.98 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.548e-05/2.567e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4601, allocations: 104.2 MB / 498.6 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.4604, allocations: 71.95 kB / 498.6 MB, free: 15.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5204/0.9808, allocations: 139.3 MB / 0.623 GB, free: 81.26 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.9808, allocations: 0 / 0.623 GB, free: 81.26 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.273e-05/0.9809, allocations: 44 kB / 0.6231 GB, free: 81.22 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003813/0.9847, allocations: 2.629 MB / 0.6256 GB, free: 78.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.9848, allocations: 12.02 kB / 0.6257 GB, free: 78.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.9849, allocations: 94.45 kB / 0.6257 GB, free: 78.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.9852, allocations: 379.4 kB / 0.6261 GB, free: 78.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.988, allocations: 2.244 MB / 0.6283 GB, free: 75.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.988, allocations: 33 kB / 0.6283 GB, free: 75.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.9881, allocations: 51.91 kB / 0.6284 GB, free: 75.65 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009914/0.9891, allocations: 0.791 MB / 0.6292 GB, free: 74.82 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.9892, allocations: 7.938 kB / 0.6292 GB, free: 74.82 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.826e-05/0.9892, allocations: 20 kB / 0.6292 GB, free: 74.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.9893, allocations: 19.98 kB / 0.6292 GB, free: 74.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008606/0.9901, allocations: 0.7033 MB / 0.6299 GB, free: 74.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003962/0.9941, allocations: 3.023 MB / 0.6328 GB, free: 70.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008359/0.995, allocations: 0.6627 MB / 0.6335 GB, free: 70.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009754/0.9959, allocations: 0.8877 MB / 0.6344 GB, free: 69.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02691/1.023, allocations: 35.86 MB / 0.6694 GB, free: 28.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007012/1.024, allocations: 0.5214 MB / 0.6699 GB, free: 27.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.535e-06/1.024, allocations: 3.938 kB / 0.6699 GB, free: 27.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=99): time 0.005433/1.029, allocations: 3.468 MB / 0.6733 GB, free: 24.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/1.029, allocations: 277.8 kB / 0.6735 GB, free: 23.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/1.031, allocations: 2.213 MB / 0.6757 GB, free: 21.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.769e-05/1.031, allocations: 45.7 kB / 0.6757 GB, free: 21.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007695/1.032, allocations: 1.299 MB / 0.677 GB, free: 20.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/1.032, allocations: 339.1 kB / 0.6773 GB, free: 20.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/1.033, allocations: 16 kB / 0.6773 GB, free: 20.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.03e-05/1.033, allocations: 345.9 kB / 0.6777 GB, free: 19.67 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004631/1.033, allocations: 326.3 kB / 0.678 GB, free: 19.35 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005414/1.034, allocations: 0.5483 MB / 0.6785 GB, free: 18.72 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005181/1.034, allocations: 392.5 kB / 0.6789 GB, free: 18.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.034, allocations: 3.953 kB / 0.6789 GB, free: 18.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002035/1.036, allocations: 1.667 MB / 0.6805 GB, free: 16.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/1.036, allocations: 12 kB / 0.6805 GB, free: 16.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/1.036, allocations: 120 kB / 0.6807 GB, free: 16.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005464/1.037, allocations: 268.3 kB / 0.6809 GB, free: 16.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/1.038, allocations: 227.7 kB / 0.6811 GB, free: 15.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005828/1.044, allocations: 13.25 MB / 0.6941 GB, free: 1.363 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/1.045, allocations: 127.9 kB / 0.6942 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/1.045, allocations: 56 kB / 0.6942 GB, free: 1.184 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002442/1.046, allocations: 176.6 kB / 0.6944 GB, free: 1.004 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/1.046, allocations: 375.5 kB / 0.6948 GB, free: 0.6328 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/1.05, allocations: 1.948 MB / 0.6967 GB, free: 14.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/1.05, allocations: 8 kB / 0.6967 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/1.05, allocations: 4 kB / 0.6967 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/1.05, allocations: 7.984 kB / 0.6967 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/1.052, allocations: 1.543 MB / 0.6982 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001375/1.052, allocations: 116 kB / 0.6983 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007274/1.053, allocations: 167.8 kB / 0.6985 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006007/1.054, allocations: 264.4 kB / 0.6987 GB, free: 12.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.84e-05/1.054, allocations: 35.98 kB / 0.6988 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2496/1.303, allocations: 13.23 MB / 0.7117 GB, free: 97.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/1.303, allocations: 7.625 kB / 0.7117 GB, free: 97.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004185/1.308, allocations: 2.101 MB / 0.7137 GB, free: 97.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.309, allocations: 0.4937 MB / 0.7142 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003206/1.309, allocations: 19.72 kB / 0.7142 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/1.31, allocations: 118.8 kB / 0.7143 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004614/1.311, allocations: 146.1 kB / 0.7145 GB, free: 97.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/1.311, allocations: 52.02 kB / 0.7145 GB, free: 97.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002538/1.313, allocations: 1.703 MB / 0.7162 GB, free: 97 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.313, allocations: 0 / 0.7162 GB, free: 97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002015/1.315, allocations: 0.7081 MB / 0.7169 GB, free: 97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004713/1.32, allocations: 3.461 MB / 0.7203 GB, free: 95.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002457/1.323, allocations: 2.215 MB / 0.7224 GB, free: 94.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/1.323, allocations: 0 / 0.7224 GB, free: 94.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/1.324, allocations: 1.791 MB / 0.7242 GB, free: 93.46 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/1.327, allocations: 0.5697 MB / 0.7247 GB, free: 93.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007212/1.334, allocations: 4.037 MB / 0.7287 GB, free: 92.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/1.336, allocations: 1.718 MB / 0.7304 GB, free: 91.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00154/1.337, allocations: 342.4 kB / 0.7307 GB, free: 91.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/1.339, allocations: 1.142 MB / 0.7318 GB, free: 91.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.462e-06/1.339, allocations: 3.219 kB / 0.7318 GB, free: 91.59 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.088/1.427, allocations: 62.11 MB / 0.7924 GB, free: 63.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001211/1.427, allocations: 160 kB / 0.7926 GB, free: 63.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.424/5.851, allocations: 4 kB / 0.7926 GB, free: 63.37 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)