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/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/ModelicaByExample 0.6.0/package.mo", uses=false) 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.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 114.8 kB / 16.42 MB, free: 6.445 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.001126/0.001126, allocations: 183.9 kB / 17.35 MB, free: 5.734 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.252/1.252, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04328/0.04328, allocations: 8.108 MB / 278.7 MB, free: 3.941 MB / 222.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: ModelicaByExample 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.001441/0.001441, allocations: 68.59 kB / 387.4 MB, free: 47.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06271/0.06416, allocations: 48.31 MB / 435.7 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002168/0.06636, allocations: 1.945 MB / 437.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003459/0.06672, allocations: 243.2 kB / 437.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.367e-05/0.06679, allocations: 4 kB / 437.9 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.621e-05/0.06687, allocations: 23.78 kB / 437.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.431e-05/0.06696, allocations: 43.56 kB / 437.9 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.06715, allocations: 51.88 kB / 438 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001295/0.06729, allocations: 191.2 kB / 438.2 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.06746, allocations: 113.8 kB / 438.3 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.107e-05/0.06752, allocations: 67.8 kB / 438.3 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.242e-05/0.06761, allocations: 75.69 kB / 438.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.06764, allocations: 20 kB / 438.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.69e-05/0.06767, allocations: 16 kB / 438.4 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.929e-05/0.06771, allocations: 43.84 kB / 438.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.477e-05/0.06778, allocations: 87.66 kB / 438.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.06792, allocations: 207.3 kB / 438.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.06793, allocations: 0 / 438.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.06794, allocations: 4 kB / 438.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.06795, allocations: 0 / 438.8 MB, free: 5.418 MB / 318.1 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.0004822/0.06844, allocations: 463.3 kB / 439.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.06847, allocations: 8.031 kB / 439.2 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.06852, allocations: 16.75 kB / 439.3 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.866e-05/0.06859, allocations: 184.2 kB / 439.4 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.06861, allocations: 12.75 kB / 439.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.662e-05/0.06866, allocations: 32.22 kB / 439.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.06888, allocations: 168.9 kB / 439.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.0689, allocations: 4.188 kB / 439.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.06892, allocations: 7.938 kB / 439.7 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.06893, allocations: 4 kB / 439.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.06909, allocations: 107.7 kB / 439.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00078/0.06987, allocations: 0.7026 MB / 440.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.07014, allocations: 223.6 kB / 440.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.07031, allocations: 108.6 kB / 440.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.07033, allocations: 0 / 440.8 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001278/0.07047, allocations: 107.1 kB / 440.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.07047, allocations: 4 kB / 440.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006753/0.07116, allocations: 0.4996 MB / 441.4 MB, free: 2.539 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.776e-05/0.07118, allocations: 59.31 kB / 441.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.871e-05/0.07125, allocations: 124.8 kB / 441.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.07127, allocations: 29.7 kB / 441.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.07131, allocations: 132.1 kB / 441.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.07134, allocations: 67 kB / 441.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.0714, allocations: 49.7 kB / 441.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.465e-05/0.07144, allocations: 322.8 kB / 442.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.756e-05/0.07151, allocations: 43.98 kB / 442.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.322e-05/0.0716, allocations: 106.8 kB / 442.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.07176, allocations: 164.5 kB / 442.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.07177, allocations: 0 / 442.5 MB, free: 1.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002283/0.072, allocations: 209.2 kB / 442.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.07202, allocations: 7.938 kB / 442.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.07203, allocations: 4 kB / 442.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.07205, allocations: 4 kB / 442.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.07223, allocations: 51.92 kB / 442.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.07225, allocations: 7.984 kB / 442.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.487e-05/0.07231, allocations: 8.125 kB / 442.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.07233, allocations: 12 kB / 442.8 MB, free: 1.062 MB / 318.1 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,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.054e-05/0.07241, allocations: 133.7 kB / 442.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.07243, allocations: 15.84 kB / 442.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.619e-05/0.07247, allocations: 16.84 kB / 442.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.07248, allocations: 3.984 kB / 442.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.07249, allocations: 0 / 442.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.07251, allocations: 85.02 kB / 443 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.07254, allocations: 0 / 443 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.135e-05/0.07259, allocations: 12 kB / 443 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.795e-05/0.07262, allocations: 11.92 kB / 443 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003457/0.07298, allocations: 244.8 kB / 443.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002731/0.07326, allocations: 394 kB / 443.7 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.723e-05/0.07334, allocations: 59.95 kB / 443.7 MB, free: 60 kB / 318.1 MB Notification: Performance of sorting global known variables: time 5.296e-05/0.0734, allocations: 99.2 kB / 443.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of Backend: time 4.01e-07/0.0734, allocations: 0 / 443.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000404/0.07381, allocations: 174.3 kB / 444 MB, free: 15.79 MB / 334.1 MB Notification: Performance of SimCode: time 0.0008649/0.07469, allocations: 0.9607 MB / 445 MB, free: 14.78 MB / 334.1 MB Notification: Performance of Templates: time 0.003382/0.07808, allocations: 1.263 MB / 446.2 MB, free: 13.53 MB / 334.1 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)