Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008374/0.0008373, allocations: 91.61 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005875/0.005875, allocations: 170.5 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 222.4 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2941/0.2941, allocations: 38.04 MB / 308.8 MB, free: 10.41 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005182/0.0005182, allocations: 12 kB / 377 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1013, allocations: 57.53 MB / 434.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001812/0.1031, allocations: 1.224 MB / 435.8 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008942/0.1041, allocations: 0.5192 MB / 436.3 MB, free: 3.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.849e-05/0.1041, allocations: 3.938 kB / 436.3 MB, free: 3.434 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.1042, allocations: 3.984 kB / 436.3 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001008/0.1043, allocations: 11.88 kB / 436.3 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.1045, allocations: 35.95 kB / 436.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.1046, allocations: 75.78 kB / 436.4 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.895e-05/0.1047, allocations: 19.83 kB / 436.5 MB, free: 3.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1048, allocations: 35.84 kB / 436.5 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.329e-05/0.1049, allocations: 39.78 kB / 436.5 MB, free: 3.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.1049, allocations: 4 kB / 436.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.463e-05/0.105, allocations: 4 kB / 436.5 MB, free: 3.207 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.105, allocations: 23.89 kB / 436.6 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.841e-05/0.1051, allocations: 57.56 kB / 436.6 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.1052, allocations: 71.98 kB / 436.7 MB, free: 3.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1052, allocations: 0 / 436.7 MB, free: 3.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1052, allocations: 0 / 436.7 MB, free: 3.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1052, allocations: 0 / 436.7 MB, free: 3.051 MB / 366.1 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.0005588/0.1058, allocations: 387.3 kB / 437.1 MB, free: 2.625 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1058, allocations: 8.031 kB / 437.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.121e-05/0.1059, allocations: 12.84 kB / 437.1 MB, free: 2.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.106, allocations: 180.2 kB / 437.3 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.106, allocations: 8.375 kB / 437.3 MB, free: 2.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.862e-05/0.106, allocations: 12.31 kB / 437.3 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.1062, allocations: 89.95 kB / 437.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.1062, allocations: 0 / 437.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1063, allocations: 0 / 437.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1063, allocations: 4 kB / 437.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001278/0.1064, allocations: 47.97 kB / 437.4 MB, free: 2.227 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.107, allocations: 328.8 kB / 437.7 MB, free: 1.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.1072, allocations: 94.48 kB / 437.8 MB, free: 1.754 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.633e-05/0.1073, allocations: 40.84 kB / 437.9 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1073, allocations: 4 kB / 437.9 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.1075, allocations: 103.5 kB / 438 MB, free: 1.594 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.814e-06/0.1075, allocations: 0 / 438 MB, free: 1.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004266/0.108, allocations: 197.4 kB / 438.2 MB, free: 1.395 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.108, allocations: 59.41 kB / 438.2 MB, free: 1.324 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.603e-05/0.1081, allocations: 121.7 kB / 438.4 MB, free: 1.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1081, allocations: 33.7 kB / 438.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.013e-05/0.1082, allocations: 84.42 kB / 438.5 MB, free: 1.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.1082, allocations: 43.53 kB / 438.5 MB, free: 1.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.1083, allocations: 21.7 kB / 438.5 MB, free: 1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.1084, allocations: 326.8 kB / 438.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.579e-05/0.1085, allocations: 35.98 kB / 438.9 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.994e-05/0.1086, allocations: 81.12 kB / 439 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.1088, allocations: 133.2 kB / 439.1 MB, free: 400 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1088, allocations: 0 / 439.1 MB, free: 400 kB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002636/0.1091, allocations: 157.4 kB / 439.2 MB, free: 236 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1091, allocations: 12.16 kB / 439.3 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1091, allocations: 0 / 439.3 MB, free: 224 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1091, allocations: 4 kB / 439.3 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.1092, allocations: 19.98 kB / 439.3 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.1092, allocations: 7.875 kB / 439.3 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.1093, allocations: 23.83 kB / 439.3 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1093, allocations: 4 kB / 439.3 MB, free: 164 kB / 366.1 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 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.631e-05/0.1094, allocations: 128.1 kB / 439.4 MB, free: 28 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.696e-05/0.1094, allocations: 11.91 kB / 439.5 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.1095, allocations: 8.5 kB / 439.5 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1095, allocations: 7.984 kB / 439.5 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.945e-05/0.1095, allocations: 3.938 kB / 439.5 MB, free: 0 / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1095, allocations: 128 / 439.5 MB, free: 16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.11, allocations: 450.8 kB / 439.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.11, allocations: 0 / 439.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.092e-05/0.1101, allocations: 15.94 kB / 439.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.1101, allocations: 0 / 439.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.1101, allocations: 11.98 kB / 439.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1101, allocations: 0 / 439.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1101, allocations: 4.312 kB / 439.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.1104, allocations: 259.4 kB / 440.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.329e-05/0.1105, allocations: 92.89 kB / 440.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.1105, allocations: 4 kB / 440.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.1106, allocations: 15.92 kB / 440.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.1107, allocations: 7.984 kB / 440.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.1107, allocations: 4 kB / 440.3 MB, free: 15.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.1107, allocations: 95.27 kB / 440.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1107, allocations: 0 / 440.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.111, allocations: 20 kB / 440.4 MB, free: 14.95 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.932e-05/0.1111, allocations: 119 kB / 440.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002268/0.1113, allocations: 99.89 kB / 440.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1113, allocations: 0 / 440.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001201/0.1115, allocations: 59.91 kB / 440.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.1117, allocations: 20.23 kB / 440.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003929/0.1121, allocations: 233.3 kB / 441 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.1124, allocations: 0.6965 MB / 441.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.953e-05/0.1124, allocations: 8.875 kB / 441.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.104e-05/0.1125, allocations: 15.44 kB / 441.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1125, allocations: 0 / 441.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of Templates: time 0.002833/0.1153, allocations: 0.8949 MB / 442.6 MB, free: 12.74 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) Environment - environmentSimulation: