Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01155/0.01155, allocations: 173.8 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.623/1.623, allocations: 194.5 MB / 210.3 MB, free: 7.539 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001802/0.001801, allocations: 128.6 kB / 255.6 MB, free: 10.15 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1944/0.1944, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003708/0.0003708, allocations: 14.34 kB / 406.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1146, allocations: 54.88 MB / 461 MB, free: 3.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.2369, allocations: 80.8 MB / 0.5291 GB, free: 2.418 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.2372, allocations: 63.91 kB / 0.5292 GB, free: 2.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0043/0.2415, allocations: 1.456 MB / 0.5306 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2416, allocations: 0 / 0.5306 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.2416, allocations: 0 / 0.5306 GB, free: 0.8867 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000546/0.2421, allocations: 387.3 kB / 0.531 GB, free: 472 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.2422, allocations: 12.03 kB / 0.531 GB, free: 460 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.881e-05/0.2422, allocations: 15.8 kB / 0.531 GB, free: 444 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000176/0.2424, allocations: 171 kB / 0.5312 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.2425, allocations: 4 kB / 0.5312 GB, free: 228 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.2425, allocations: 12 kB / 0.5312 GB, free: 216 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002421/0.2428, allocations: 89.27 kB / 0.5313 GB, free: 124 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2428, allocations: 0 / 0.5313 GB, free: 124 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.2428, allocations: 0 / 0.5313 GB, free: 124 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2428, allocations: 7.953 kB / 0.5313 GB, free: 116 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001399/0.243, allocations: 51.91 kB / 0.5313 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2554/0.4984, allocations: 331.8 kB / 0.5316 GB, free: 82.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.4987, allocations: 89.39 kB / 0.5317 GB, free: 82.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.642e-05/0.4987, allocations: 3 kB / 0.5317 GB, free: 82.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.499, allocations: 107.7 kB / 0.5318 GB, free: 82.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.105e-06/0.499, allocations: 3.344 kB / 0.5318 GB, free: 82.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004538/0.4994, allocations: 185.9 kB / 0.532 GB, free: 82.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.854e-05/0.4995, allocations: 62.94 kB / 0.5321 GB, free: 82.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.4996, allocations: 106.5 kB / 0.5322 GB, free: 82.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.4996, allocations: 33.55 kB / 0.5322 GB, free: 82.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.329e-05/0.4997, allocations: 90.7 kB / 0.5323 GB, free: 82.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.844e-05/0.4997, allocations: 37.25 kB / 0.5323 GB, free: 82.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.108e-06/0.4998, allocations: 2.375 kB / 0.5323 GB, free: 82.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.111e-05/0.4998, allocations: 324.4 kB / 0.5326 GB, free: 82.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.552e-05/0.4999, allocations: 42.02 kB / 0.5327 GB, free: 82.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.102e-05/0.5, allocations: 78.75 kB / 0.5328 GB, free: 82.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.725e-05/0.5001, allocations: 46.81 kB / 0.5328 GB, free: 82.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5001, allocations: 0 / 0.5328 GB, free: 82.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002688/0.5004, allocations: 161.9 kB / 0.5329 GB, free: 82.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.5004, allocations: 7.312 kB / 0.533 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.5005, allocations: 1.469 kB / 0.533 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.5005, allocations: 5.422 kB / 0.533 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.5006, allocations: 24.44 kB / 0.533 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.5006, allocations: 7.672 kB / 0.533 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.043e-05/0.5007, allocations: 9.219 kB / 0.533 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.5007, allocations: 8.469 kB / 0.533 GB, free: 82.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.5008, allocations: 132.8 kB / 0.5331 GB, free: 81.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.5008, allocations: 9.656 kB / 0.5331 GB, free: 81.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.694e-05/0.5009, allocations: 10.25 kB / 0.5332 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.5009, allocations: 9.266 kB / 0.5332 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.5009, allocations: 1.906 kB / 0.5332 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.85e-06/0.5009, allocations: 3.469 kB / 0.5332 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004997/0.5014, allocations: 443.5 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5014, allocations: 4.344 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.542e-05/0.5015, allocations: 8.672 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.5015, allocations: 5.328 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.5015, allocations: 4.547 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.5015, allocations: 1.188 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5015, allocations: 0.875 kB / 0.5336 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003374/0.5019, allocations: 260.9 kB / 0.5339 GB, free: 81.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.298e-05/0.5019, allocations: 86.73 kB / 0.5339 GB, free: 81.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.502, allocations: 9.141 kB / 0.534 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.5021, allocations: 12.52 kB / 0.534 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.5022, allocations: 12.55 kB / 0.534 GB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.5022, allocations: 6.672 kB / 0.534 GB, free: 81.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.569e-05/0.5022, allocations: 91.31 kB / 0.5341 GB, free: 81.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5022, allocations: 0 / 0.5341 GB, free: 81.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002515/0.5025, allocations: 21.84 kB / 0.5341 GB, free: 81.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001212/0.5026, allocations: 102.6 kB / 0.5342 GB, free: 81.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002703/0.5029, allocations: 111.5 kB / 0.5343 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.5029, allocations: 1.062 kB / 0.5343 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.503, allocations: 50.17 kB / 0.5343 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000196/0.5032, allocations: 9.828 kB / 0.5344 GB, free: 81.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000419/0.5037, allocations: 226.6 kB / 0.5346 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001438/0.5038, allocations: 0.6971 MB / 0.5353 GB, free: 80.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.652e-05/0.5039, allocations: 10.05 kB / 0.5353 GB, free: 80.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.5039, allocations: 14.36 kB / 0.5353 GB, free: 80.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.5039, allocations: 3.938 kB / 0.5353 GB, free: 80.34 MB / 378.7 MB Notification: Performance of Templates: time 0.003044/0.507, allocations: 0.8775 MB / 0.5361 GB, free: 80.28 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1)