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/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.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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009423/0.0009423, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009473/0.0009473, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3297/0.3297, allocations: 40 MB / 310.4 MB, free: 9.918 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.2. 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.0005465/0.0005467, allocations: 20 kB / 378.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1133, allocations: 57.96 MB / 436.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001601/0.1149, allocations: 1.213 MB / 438 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009025/0.1159, allocations: 0.4923 MB / 438.5 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.125e-05/0.1159, allocations: 4 kB / 438.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.477e-05/0.116, allocations: 7.922 kB / 438.5 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.676e-05/0.1161, allocations: 7.984 kB / 438.5 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.1163, allocations: 35.83 kB / 438.5 MB, free: 0.832 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.835e-05/0.1164, allocations: 51.92 kB / 438.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.92e-05/0.1165, allocations: 11.98 kB / 438.6 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.1166, allocations: 31.86 kB / 438.6 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.778e-05/0.1167, allocations: 43.88 kB / 438.7 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.1167, allocations: 7.938 kB / 438.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.669e-05/0.1168, allocations: 4 kB / 438.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.658e-05/0.1168, allocations: 15.92 kB / 438.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.925e-05/0.1168, allocations: 37.64 kB / 438.7 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 8.829e-05/0.1169, allocations: 52.11 kB / 438.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.117, allocations: 0 / 438.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.117, allocations: 4 kB / 438.8 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.117, allocations: 0 / 438.8 MB, free: 0.5703 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.0006131/0.1176, allocations: 391.1 kB / 439.2 MB, free: 144 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1176, allocations: 12.03 kB / 439.2 MB, free: 132 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.187e-05/0.1177, allocations: 11.86 kB / 439.2 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.1178, allocations: 170.9 kB / 439.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.343e-05/0.1179, allocations: 8 kB / 439.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.1179, allocations: 7.984 kB / 439.4 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.1181, allocations: 89.59 kB / 439.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.1181, allocations: 0 / 439.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.1182, allocations: 3.984 kB / 439.5 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1182, allocations: 4 kB / 439.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.1183, allocations: 47.94 kB / 439.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005522/0.1189, allocations: 328.8 kB / 439.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.1191, allocations: 86.48 kB / 439.9 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.141e-05/0.1191, allocations: 7.984 kB / 439.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.1193, allocations: 107.3 kB / 440 MB, free: 15.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/0.1193, allocations: 0 / 440 MB, free: 15.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004094/0.1197, allocations: 189.7 kB / 440.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1198, allocations: 63.33 kB / 440.3 MB, free: 14.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.266e-05/0.1199, allocations: 117.9 kB / 440.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.1199, allocations: 29.7 kB / 440.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.12, allocations: 100.8 kB / 440.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.12, allocations: 31.55 kB / 440.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-06/0.12, allocations: 8 kB / 440.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.1201, allocations: 318.8 kB / 440.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.193e-05/0.1202, allocations: 36.3 kB / 440.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.1203, allocations: 85.88 kB / 441 MB, free: 14.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.1204, allocations: 48.14 kB / 441 MB, free: 14.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1204, allocations: 4 kB / 441 MB, free: 14.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002502/0.1207, allocations: 153.4 kB / 441.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1207, allocations: 8 kB / 441.2 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1207, allocations: 3.938 kB / 441.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1208, allocations: 7.953 kB / 441.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.1209, allocations: 23.98 kB / 441.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.1209, allocations: 0 / 441.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.92e-05/0.121, allocations: 16 kB / 441.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.121, allocations: 12 kB / 441.3 MB, free: 13.86 MB / 382.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 ($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 9.745e-05/0.1211, allocations: 136 kB / 441.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.1211, allocations: 7.906 kB / 441.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.1211, allocations: 12.5 kB / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1212, allocations: 3.953 kB / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1212, allocations: 0 / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1212, allocations: 0 / 441.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005037/0.1217, allocations: 446.4 kB / 441.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1217, allocations: 4 kB / 441.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.088e-05/0.1218, allocations: 4 kB / 441.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.1218, allocations: 7.953 kB / 441.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.1218, allocations: 4 kB / 441.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1218, allocations: 3.984 kB / 441.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1218, allocations: 0 / 441.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.1221, allocations: 255.4 kB / 442.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.1222, allocations: 92.94 kB / 442.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.1222, allocations: 7.953 kB / 442.2 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.1223, allocations: 15.98 kB / 442.2 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.1223, allocations: 7.984 kB / 442.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.1224, allocations: 8 kB / 442.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.047e-05/0.1224, allocations: 91.27 kB / 442.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1224, allocations: 0 / 442.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.1227, allocations: 24.28 kB / 442.4 MB, free: 12.65 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 (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.0001064/0.1228, allocations: 103.3 kB / 442.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002662/0.1231, allocations: 112 kB / 442.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1231, allocations: 4.062 kB / 442.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.1232, allocations: 56.66 kB / 442.6 MB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001932/0.1234, allocations: 8 kB / 442.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004407/0.1238, allocations: 229.3 kB / 442.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.1241, allocations: 0.6926 MB / 443.6 MB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.484e-05/0.1242, allocations: 12.88 kB / 443.6 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.1242, allocations: 15.44 kB / 443.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1242, allocations: 0 / 443.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of Templates: time 0.002978/0.1272, allocations: 0.8666 MB / 444.4 MB, free: 10.5 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: