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.0009634/0.0009634, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001016/0.001016, allocations: 189.5 kB / 16.25 MB, free: 6.625 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.59/1.59, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04677/0.04677, allocations: 8.109 MB / 277.6 MB, free: 13.34 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.001365/0.001365, allocations: 67.91 kB / 336.7 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1218, allocations: 48.3 MB / 385 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003536/0.1254, allocations: 1.953 MB / 386.9 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000341/0.1258, allocations: 143.5 kB / 387.1 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.901e-05/0.1259, allocations: 8 kB / 387.1 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.236e-05/0.126, allocations: 19.84 kB / 387.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.1261, allocations: 35.69 kB / 387.1 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.1263, allocations: 35.97 kB / 387.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001741/0.1265, allocations: 167.3 kB / 387.3 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.1267, allocations: 81.52 kB / 387.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.982e-05/0.1268, allocations: 67.78 kB / 387.5 MB, free: 7.988 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.1269, allocations: 79.69 kB / 387.6 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.1269, allocations: 20 kB / 387.6 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.759e-05/0.127, allocations: 16 kB / 387.6 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.438e-05/0.127, allocations: 31.86 kB / 387.6 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.837e-05/0.1271, allocations: 83.66 kB / 387.7 MB, free: 7.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.1273, allocations: 183.6 kB / 387.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1274, allocations: 0 / 387.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1274, allocations: 0 / 387.9 MB, free: 7.582 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.1274, allocations: 0 / 387.9 MB, free: 7.582 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.0006401/0.128, allocations: 459 kB / 388.3 MB, free: 7.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1281, allocations: 8.031 kB / 388.4 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.135e-05/0.1281, allocations: 20.69 kB / 388.4 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.1283, allocations: 180.2 kB / 388.5 MB, free: 6.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.778e-05/0.1283, allocations: 16.31 kB / 388.6 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.1284, allocations: 20.38 kB / 388.6 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.1287, allocations: 154.1 kB / 388.7 MB, free: 6.648 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1287, allocations: 4.094 kB / 388.7 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.1287, allocations: 7.938 kB / 388.7 MB, free: 6.637 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1287, allocations: 4 kB / 388.8 MB, free: 6.633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.1289, allocations: 111.9 kB / 388.9 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009599/0.1299, allocations: 0.6793 MB / 389.5 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004321/0.1303, allocations: 235.5 kB / 389.8 MB, free: 5.52 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.1305, allocations: 88.7 kB / 389.9 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.1305, allocations: 4 kB / 389.9 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.1306, allocations: 38.56 kB / 389.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.1306, allocations: 0 / 389.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.000808/0.1314, allocations: 485.7 kB / 390.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.1314, allocations: 51.41 kB / 390.4 MB, free: 4.797 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.1315, allocations: 121.8 kB / 390.5 MB, free: 4.668 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1316, allocations: 29.7 kB / 390.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.1316, allocations: 128.1 kB / 390.7 MB, free: 4.504 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.287e-05/0.1317, allocations: 63.11 kB / 390.8 MB, free: 4.441 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.553e-05/0.1317, allocations: 41.7 kB / 390.8 MB, free: 4.395 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1319, allocations: 322.8 kB / 391.1 MB, free: 4.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.509e-05/0.1319, allocations: 39.98 kB / 391.2 MB, free: 4.031 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.888e-05/0.132, allocations: 90.16 kB / 391.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.1322, allocations: 141.1 kB / 391.4 MB, free: 3.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.71e-07/0.1322, allocations: 0 / 391.4 MB, free: 3.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002379/0.1325, allocations: 181 kB / 391.6 MB, free: 3.59 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1325, allocations: 10.22 kB / 391.6 MB, free: 3.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1325, allocations: 4 kB / 391.6 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1325, allocations: 0 / 391.6 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.1327, allocations: 51.84 kB / 391.6 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.254e-06/0.1327, allocations: 4 kB / 391.6 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.809e-05/0.1328, allocations: 11.94 kB / 391.6 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1328, allocations: 4 kB / 391.6 MB, free: 3.508 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.0001054/0.1329, allocations: 129.8 kB / 391.8 MB, free: 3.371 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.834e-05/0.133, allocations: 11.91 kB / 391.8 MB, free: 3.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.94e-05/0.133, allocations: 16.84 kB / 391.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.133, allocations: 0 / 391.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.133, allocations: 0 / 391.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.133, allocations: 7.922 kB / 391.8 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005761/0.1336, allocations: 490.2 kB / 392.3 MB, free: 2.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1336, allocations: 4 kB / 392.3 MB, free: 2.797 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.1338, allocations: 43.92 kB / 392.3 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.1338, allocations: 7.922 kB / 392.3 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.1338, allocations: 8 kB / 392.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1338, allocations: 0 / 392.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1338, allocations: 3.938 kB / 392.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.1341, allocations: 271.4 kB / 392.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.1342, allocations: 88.98 kB / 392.7 MB, free: 2.348 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.1342, allocations: 8 kB / 392.7 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.79e-05/0.1343, allocations: 4 kB / 392.7 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.106e-05/0.1343, allocations: 7.984 kB / 392.7 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.1343, allocations: 8 kB / 392.7 MB, free: 2.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.441e-05/0.1344, allocations: 95.64 kB / 392.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1344, allocations: 0 / 392.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002552/0.1347, allocations: 36 kB / 392.9 MB, free: 2.191 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.000113/0.1348, allocations: 103.2 kB / 393 MB, free: 2.078 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.135, allocations: 123.8 kB / 393.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1351, allocations: 0 / 393.1 MB, free: 1.957 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.771e-05/0.1351, allocations: 47.98 kB / 393.1 MB, free: 1.91 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.1354, allocations: 19.86 kB / 393.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009847/0.1364, allocations: 0.5911 MB / 393.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.1367, allocations: 0.7278 MB / 394.5 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.318e-05/0.1368, allocations: 9.078 kB / 394.5 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.1368, allocations: 15.44 kB / 394.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1368, allocations: 0 / 394.5 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of Templates: time 0.003386/0.1402, allocations: 0.9803 MB / 395.5 MB, free: 15.52 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (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)