Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) 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 ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001985/0.001985, allocations: 181.4 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.152/2.152, allocations: 194.3 MB / 207.5 MB, free: 3.395 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03699/0.03699, allocations: 7.906 MB / 260.4 MB, free: 13.77 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002026/0.002026, allocations: 120.4 kB / 307.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.667e-05/4.668e-05, allocations: 8 kB / 361.2 MB, free: 8.688 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3799, allocations: 46.2 MB / 407.4 MB, free: 67.04 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1077/0.4877, allocations: 72.04 MB / 479.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.488, allocations: 47.98 kB / 479.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007151/0.4951, allocations: 2.645 MB / 482.2 MB, free: 8.207 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4952, allocations: 0 / 482.2 MB, free: 8.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.4952, allocations: 4 kB / 482.2 MB, free: 8.203 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005798/0.4958, allocations: 426.9 kB / 482.6 MB, free: 7.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/0.4959, allocations: 8.031 kB / 482.6 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.682e-05/0.4959, allocations: 19.77 kB / 482.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.4961, allocations: 179.1 kB / 482.8 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.4961, allocations: 8.375 kB / 482.8 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.191e-05/0.4962, allocations: 31.89 kB / 482.8 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.4965, allocations: 164.3 kB / 483 MB, free: 7.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.4965, allocations: 4 kB / 483 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.402e-05/0.4966, allocations: 11.98 kB / 483 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.4966, allocations: 4 kB / 483 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.4968, allocations: 107.8 kB / 483.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.498, allocations: 0.7143 MB / 483.8 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.4984, allocations: 223.6 kB / 484.1 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.4986, allocations: 96.78 kB / 484.2 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.4986, allocations: 11.94 kB / 484.2 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.4988, allocations: 87.61 kB / 484.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.904e-06/0.4988, allocations: 0 / 484.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008954/0.4997, allocations: 472.3 kB / 484.7 MB, free: 5.418 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.4998, allocations: 55.41 kB / 484.8 MB, free: 5.352 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.4999, allocations: 113.2 kB / 484.9 MB, free: 5.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.4999, allocations: 33.7 kB / 484.9 MB, free: 5.191 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.5, allocations: 139.9 kB / 485 MB, free: 5.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.65e-05/0.5001, allocations: 59.11 kB / 485.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.5001, allocations: 7.938 kB / 485.1 MB, free: 4.984 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5003, allocations: 322.8 kB / 485.4 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.792e-05/0.5004, allocations: 44 kB / 485.5 MB, free: 4.617 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.5005, allocations: 108 kB / 485.6 MB, free: 4.488 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.5006, allocations: 61.47 kB / 485.6 MB, free: 4.43 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.5006, allocations: 4 kB / 485.6 MB, free: 4.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003001/0.5009, allocations: 207.6 kB / 485.8 MB, free: 4.219 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.501, allocations: 8 kB / 485.8 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.501, allocations: 0 / 485.8 MB, free: 4.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.501, allocations: 4 kB / 485.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.5012, allocations: 47.92 kB / 485.9 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.5012, allocations: 4 kB / 485.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.269e-05/0.5013, allocations: 12.22 kB / 485.9 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.5013, allocations: 8 kB / 485.9 MB, free: 4.137 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.sampleHold.w,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001032/0.5014, allocations: 116.9 kB / 486 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.5014, allocations: 15.86 kB / 486.1 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.133e-05/0.5015, allocations: 16.75 kB / 486.1 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5015, allocations: 4 kB / 486.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5015, allocations: 0 / 486.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.5015, allocations: 0 / 486.1 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000683/0.5022, allocations: 0.517 MB / 486.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.5022, allocations: 0 / 486.6 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.5024, allocations: 35.98 kB / 486.6 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.5024, allocations: 0 / 486.6 MB, free: 3.371 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.5024, allocations: 8 kB / 486.6 MB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.5024, allocations: 7.875 kB / 486.6 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5025, allocations: 0 / 486.6 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003665/0.5028, allocations: 295.3 kB / 486.9 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.5029, allocations: 84.92 kB / 487 MB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.5029, allocations: 8 kB / 487 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.991e-05/0.503, allocations: 4 kB / 487 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.5031, allocations: 12.03 kB / 487 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.5031, allocations: 4 kB / 487 MB, free: 2.922 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.285e-05/0.5031, allocations: 95.27 kB / 487.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5032, allocations: 4 kB / 487.1 MB, free: 2.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002548/0.5034, allocations: 44 kB / 487.2 MB, free: 2.781 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001526/0.5036, allocations: 103.1 kB / 487.3 MB, free: 2.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000235/0.5038, allocations: 131.9 kB / 487.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5038, allocations: 0 / 487.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.933e-05/0.5039, allocations: 51.94 kB / 487.5 MB, free: 2.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/0.5041, allocations: 24.27 kB / 487.5 MB, free: 2.469 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009018/0.505, allocations: 482.7 kB / 488 MB, free: 1.977 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.5054, allocations: 0.7282 MB / 488.7 MB, free: 1.223 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.423e-05/0.5055, allocations: 17.2 kB / 488.7 MB, free: 1.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.764e-05/0.5055, allocations: 15.44 kB / 488.7 MB, free: 1.188 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5055, allocations: 0 / 488.7 MB, free: 1.188 MB / 330.7 MB Notification: Performance of Templates: time 0.003435/0.509, allocations: 1.018 MB / 489.7 MB, free: 184 kB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)