Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001354/0.001354, allocations: 168.7 kB / 15.95 MB, free: 204 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.534/1.534, allocations: 205.4 MB / 222.1 MB, free: 5.363 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04124/0.04124, allocations: 8.109 MB / 278.5 MB, free: 13.07 MB / 238.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.0005448/0.0005449, allocations: 14.97 kB / 338.3 MB, free: 27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1023, allocations: 49.27 MB / 387.5 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002059/0.1044, allocations: 1.564 MB / 389.1 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003977/0.1048, allocations: 155.5 kB / 389.3 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.1049, allocations: 0 / 389.3 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.794e-05/0.105, allocations: 19.8 kB / 389.3 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1051, allocations: 31.75 kB / 389.3 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000185/0.1053, allocations: 27.98 kB / 389.3 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.1055, allocations: 171.2 kB / 389.5 MB, free: 7.695 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.1057, allocations: 61.86 kB / 389.6 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.181e-05/0.1058, allocations: 47.86 kB / 389.6 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.1059, allocations: 71.69 kB / 389.7 MB, free: 7.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.1059, allocations: 8 kB / 389.7 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.555e-05/0.106, allocations: 8 kB / 389.7 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.474e-05/0.106, allocations: 27.92 kB / 389.7 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5e-05/0.1061, allocations: 53.64 kB / 389.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.1062, allocations: 143.8 kB / 389.9 MB, free: 7.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.1062, allocations: 4 kB / 389.9 MB, free: 7.273 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1062, allocations: 0 / 389.9 MB, free: 7.273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1063, allocations: 0 / 389.9 MB, free: 7.273 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005252/0.1068, allocations: 426.8 kB / 390.3 MB, free: 6.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1068, allocations: 11.97 kB / 390.4 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.4e-05/0.1069, allocations: 15.81 kB / 390.4 MB, free: 6.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.107, allocations: 171 kB / 390.5 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.1071, allocations: 19.95 kB / 390.6 MB, free: 6.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.827e-05/0.1071, allocations: 19.98 kB / 390.6 MB, free: 6.535 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.1074, allocations: 149.6 kB / 390.7 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1074, allocations: 0 / 390.7 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.1075, allocations: 16 kB / 390.7 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.1075, allocations: 4 kB / 390.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.1077, allocations: 103.9 kB / 390.8 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009682/0.1086, allocations: 0.687 MB / 391.5 MB, free: 5.504 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.109, allocations: 223.3 kB / 391.7 MB, free: 5.262 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001778/0.1092, allocations: 100.8 kB / 391.8 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.1093, allocations: 0 / 391.8 MB, free: 5.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1093, allocations: 34.56 kB / 391.9 MB, free: 5.117 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 4.639e-06/0.1093, allocations: 3.984 kB / 391.9 MB, free: 5.113 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008099/0.1101, allocations: 477.9 kB / 392.4 MB, free: 4.594 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.1102, allocations: 55.41 kB / 392.4 MB, free: 4.527 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.711e-05/0.1103, allocations: 129.7 kB / 392.5 MB, free: 4.391 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.1103, allocations: 25.7 kB / 392.6 MB, free: 4.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.1104, allocations: 132.1 kB / 392.7 MB, free: 4.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.646e-05/0.1104, allocations: 59.19 kB / 392.7 MB, free: 4.168 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.855e-06/0.1104, allocations: 4 kB / 392.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1106, allocations: 322.8 kB / 393.1 MB, free: 3.84 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.326e-05/0.1106, allocations: 35.98 kB / 393.1 MB, free: 3.805 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/0.1107, allocations: 94.16 kB / 393.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.894e-05/0.1109, allocations: 55.94 kB / 393.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1109, allocations: 0 / 393.2 MB, free: 3.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002438/0.1111, allocations: 177.3 kB / 393.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1111, allocations: 12.16 kB / 393.4 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1111, allocations: 0 / 393.4 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.1112, allocations: 7.984 kB / 393.4 MB, free: 3.441 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.1114, allocations: 47.92 kB / 393.5 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.1114, allocations: 4 kB / 393.5 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.671e-05/0.1114, allocations: 3.953 kB / 393.5 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.1115, allocations: 12 kB / 393.5 MB, free: 3.375 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.000103/0.1116, allocations: 129.8 kB / 393.6 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.1116, allocations: 11.91 kB / 393.6 MB, free: 3.227 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.485e-05/0.1117, allocations: 16.83 kB / 393.7 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.1117, allocations: 4 kB / 393.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1117, allocations: 0 / 393.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1117, allocations: 0 / 393.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006068/0.1123, allocations: 498.3 kB / 394.1 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.1123, allocations: 4 kB / 394.2 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001741/0.1125, allocations: 35.98 kB / 394.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1125, allocations: 0 / 394.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1125, allocations: 7.953 kB / 394.2 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.1125, allocations: 7.922 kB / 394.2 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1126, allocations: 7.938 kB / 394.2 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.1129, allocations: 274.7 kB / 394.5 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.1129, allocations: 85.02 kB / 394.6 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.113, allocations: 7.953 kB / 394.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.705e-05/0.113, allocations: 4 kB / 394.6 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.782e-05/0.1131, allocations: 12.03 kB / 394.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.1131, allocations: 0 / 394.6 MB, free: 2.195 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.1132, allocations: 91.27 kB / 394.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.1132, allocations: 0 / 394.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000282/0.1134, allocations: 40 kB / 394.7 MB, free: 2.066 MB / 286.1 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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001439/0.1136, allocations: 103.2 kB / 394.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002271/0.1138, allocations: 111.9 kB / 394.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1138, allocations: 0 / 394.9 MB, free: 1.844 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.523e-05/0.1139, allocations: 59.7 kB / 395 MB, free: 1.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1142, allocations: 6.344 kB / 395 MB, free: 1.785 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000988/0.1152, allocations: 0.6639 MB / 395.7 MB, free: 1.09 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000288/0.1155, allocations: 0.7126 MB / 396.4 MB, free: 360 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.969e-05/0.1155, allocations: 13.08 kB / 396.4 MB, free: 348 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.1156, allocations: 23.38 kB / 396.4 MB, free: 324 kB / 286.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1156, allocations: 0 / 396.4 MB, free: 324 kB / 286.1 MB Notification: Performance of Templates: time 0.00347/0.1191, allocations: 0.8865 MB / 397.3 MB, free: 15.43 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile Environment - environmentSimulation: (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) Environment - environmentSimulation: