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.0009143/0.0009142, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.008316/0.008316, allocations: 169 kB / 16.26 MB, free: 6.652 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.605/1.605, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03972/0.03972, allocations: 8.108 MB / 278.8 MB, free: 13.1 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.0009635/0.0009636, allocations: 23.44 kB / 338.9 MB, free: 26.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1172, allocations: 49.27 MB / 388.2 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002251/0.1195, allocations: 1.603 MB / 389.8 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000435/0.12, allocations: 147.5 kB / 389.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.115e-05/0.1201, allocations: 0 / 389.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.479e-05/0.1202, allocations: 19.84 kB / 389.9 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.1203, allocations: 39.69 kB / 390 MB, free: 7.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.1206, allocations: 39.97 kB / 390 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.1208, allocations: 159.3 kB / 390.2 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.121, allocations: 74.06 kB / 390.2 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.403e-05/0.1211, allocations: 59.73 kB / 390.3 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.1212, allocations: 63.69 kB / 390.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.1213, allocations: 8 kB / 390.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.551e-05/0.1213, allocations: 8 kB / 390.4 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.434e-05/0.1213, allocations: 31.86 kB / 390.4 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.875e-05/0.1214, allocations: 97.38 kB / 390.5 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.1216, allocations: 179.6 kB / 390.7 MB, free: 6.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1216, allocations: 3.938 kB / 390.7 MB, free: 6.805 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1216, allocations: 0 / 390.7 MB, free: 6.805 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.1216, allocations: 0 / 390.7 MB, free: 6.805 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.0005185/0.1222, allocations: 431 kB / 391.1 MB, free: 6.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1222, allocations: 12.03 kB / 391.1 MB, free: 6.32 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/0.1223, allocations: 12.84 kB / 391.1 MB, free: 6.309 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.1224, allocations: 176.2 kB / 391.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.1224, allocations: 16.31 kB / 391.3 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.1225, allocations: 20.38 kB / 391.3 MB, free: 6.062 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.1228, allocations: 158.1 kB / 391.5 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.1228, allocations: 192 / 391.5 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.1228, allocations: 7.938 kB / 391.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.1228, allocations: 4 kB / 391.5 MB, free: 5.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.123, allocations: 103.9 kB / 391.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.1241, allocations: 0.6948 MB / 392.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004366/0.1245, allocations: 223.6 kB / 392.5 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.1247, allocations: 96.45 kB / 392.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1248, allocations: 0 / 392.6 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.1248, allocations: 38.55 kB / 392.6 MB, free: 4.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.1248, allocations: 4 kB / 392.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008652/0.1257, allocations: 481.9 kB / 393.1 MB, free: 4.109 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.1257, allocations: 55.41 kB / 393.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.549e-05/0.1258, allocations: 117.8 kB / 393.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.1258, allocations: 29.7 kB / 393.3 MB, free: 3.883 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.478e-05/0.1259, allocations: 128.1 kB / 393.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.639e-05/0.126, allocations: 67.09 kB / 393.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/0.126, allocations: 25.72 kB / 393.5 MB, free: 3.656 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1261, allocations: 318.8 kB / 393.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.384e-05/0.1262, allocations: 43.98 kB / 393.9 MB, free: 3.293 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.705e-05/0.1263, allocations: 86.16 kB / 394 MB, free: 3.191 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.1265, allocations: 145.1 kB / 394.1 MB, free: 3.031 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1265, allocations: 0 / 394.1 MB, free: 3.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002576/0.1268, allocations: 176.8 kB / 394.3 MB, free: 2.855 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1268, allocations: 12.16 kB / 394.3 MB, free: 2.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1268, allocations: 0 / 394.3 MB, free: 2.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.1268, allocations: 7.938 kB / 394.3 MB, free: 2.836 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.127, allocations: 47.91 kB / 394.3 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.127, allocations: 7.938 kB / 394.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.86e-05/0.1271, allocations: 7.938 kB / 394.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1271, allocations: 8 kB / 394.4 MB, free: 2.766 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.1272, allocations: 129.8 kB / 394.5 MB, free: 2.629 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.1273, allocations: 11.91 kB / 394.5 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.1273, allocations: 12.84 kB / 394.5 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1273, allocations: 4 kB / 394.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.1274, allocations: 3.984 kB / 394.5 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1274, allocations: 3.938 kB / 394.5 MB, free: 2.594 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000644/0.128, allocations: 498.2 kB / 395 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.128, allocations: 0 / 395 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001912/0.1282, allocations: 43.86 kB / 395.1 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1282, allocations: 0 / 395.1 MB, free: 2.008 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.1283, allocations: 4 kB / 395.1 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.1283, allocations: 0 / 395.1 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1283, allocations: 4 kB / 395.1 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003461/0.1286, allocations: 275.2 kB / 395.3 MB, free: 1.719 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.687e-05/0.1287, allocations: 92.95 kB / 395.4 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.1287, allocations: 4 kB / 395.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7e-05/0.1288, allocations: 4 kB / 395.4 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.1288, allocations: 7.984 kB / 395.4 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.1289, allocations: 8 kB / 395.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.821e-05/0.1289, allocations: 95.64 kB / 395.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1289, allocations: 0 / 395.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002674/0.1292, allocations: 32 kB / 395.6 MB, free: 1.461 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001248/0.1293, allocations: 107.2 kB / 395.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002859/0.1296, allocations: 111.8 kB / 395.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1296, allocations: 0 / 395.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.325e-05/0.1297, allocations: 55.92 kB / 395.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.13, allocations: 11.94 kB / 395.9 MB, free: 1.168 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009315/0.1309, allocations: 0.6679 MB / 396.5 MB, free: 480 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.1312, allocations: 0.7165 MB / 397.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.253e-05/0.1313, allocations: 13.08 kB / 397.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.599e-05/0.1313, allocations: 19.44 kB / 397.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1313, allocations: 0 / 397.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Templates: time 0.00336/0.1347, allocations: 0.9179 MB / 398.2 MB, free: 14.78 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: