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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.000967/0.0009674, allocations: 177.3 kB / 15.94 MB, free: 228 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.7/1.7, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03852/0.03852, allocations: 8.089 MB / 278.5 MB, free: 13.25 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.0005689/0.000569, allocations: 15.44 kB / 338.3 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1202, allocations: 49.28 MB / 387.6 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002081/0.1224, allocations: 1.498 MB / 389.1 MB, free: 8.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003627/0.1227, allocations: 155.5 kB / 389.3 MB, free: 7.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.329e-05/0.1228, allocations: 4 kB / 389.3 MB, free: 7.961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.091e-05/0.1229, allocations: 11.92 kB / 389.3 MB, free: 7.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.123, allocations: 47.88 kB / 389.3 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.1232, allocations: 27.92 kB / 389.3 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1234, allocations: 119.8 kB / 389.5 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.1236, allocations: 73.78 kB / 389.5 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.053e-05/0.1237, allocations: 47.86 kB / 389.6 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.1238, allocations: 59.7 kB / 389.6 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.1239, allocations: 8 kB / 389.6 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.931e-05/0.1239, allocations: 12 kB / 389.7 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.199e-05/0.1239, allocations: 27.91 kB / 389.7 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.951e-05/0.124, allocations: 53.64 kB / 389.7 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.1242, allocations: 143.8 kB / 389.9 MB, free: 7.332 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1242, allocations: 0 / 389.9 MB, free: 7.332 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1242, allocations: 0 / 389.9 MB, free: 7.332 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1242, allocations: 4 kB / 389.9 MB, free: 7.328 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.0006913/0.1249, allocations: 426.8 kB / 390.3 MB, free: 6.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.142e-05/0.125, allocations: 8.031 kB / 390.3 MB, free: 6.855 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.774e-05/0.1251, allocations: 54.55 kB / 390.4 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.1252, allocations: 15.81 kB / 390.4 MB, free: 6.777 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.1254, allocations: 171 kB / 390.5 MB, free: 6.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.1254, allocations: 23.89 kB / 390.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.1255, allocations: 23.98 kB / 390.6 MB, free: 6.523 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.1258, allocations: 145.6 kB / 390.7 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.1258, allocations: 4 kB / 390.7 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.386e-05/0.1258, allocations: 8 kB / 390.7 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1259, allocations: 4 kB / 390.7 MB, free: 6.359 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.1261, allocations: 103.9 kB / 390.9 MB, free: 6.258 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.1273, allocations: 0.687 MB / 391.5 MB, free: 5.504 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000429/0.1277, allocations: 223.6 kB / 391.8 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.1277, allocations: 4 kB / 391.8 MB, free: 5.254 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.1278, allocations: 38.5 kB / 391.8 MB, free: 5.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.1278, allocations: 0 / 391.8 MB, free: 5.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007921/0.1286, allocations: 493.4 kB / 392.3 MB, free: 4.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/0.1286, allocations: 55.41 kB / 392.3 MB, free: 4.613 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.871e-05/0.1287, allocations: 129.6 kB / 392.5 MB, free: 4.477 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1287, allocations: 33.7 kB / 392.5 MB, free: 4.438 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.887e-05/0.1288, allocations: 124.1 kB / 392.6 MB, free: 4.312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.954e-05/0.1289, allocations: 59.19 kB / 392.7 MB, free: 4.254 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.326e-06/0.1289, allocations: 4 kB / 392.7 MB, free: 4.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.129, allocations: 322.8 kB / 393 MB, free: 3.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.982e-05/0.1291, allocations: 39.98 kB / 393 MB, free: 3.887 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.1292, allocations: 90.22 kB / 393.1 MB, free: 3.781 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.855e-05/0.1293, allocations: 59.94 kB / 393.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1293, allocations: 4 kB / 393.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002363/0.1296, allocations: 180.8 kB / 393.4 MB, free: 3.539 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1296, allocations: 8.156 kB / 393.4 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1296, allocations: 7.938 kB / 393.4 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1296, allocations: 7.938 kB / 393.4 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.1298, allocations: 47.91 kB / 393.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1298, allocations: 0 / 393.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.114e-05/0.1299, allocations: 11.95 kB / 393.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1299, allocations: 8 kB / 393.4 MB, free: 3.449 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 9.81e-05/0.13, allocations: 125.8 kB / 393.6 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.1301, allocations: 11.91 kB / 393.6 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.1301, allocations: 20.84 kB / 393.6 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1301, allocations: 3.984 kB / 393.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1301, allocations: 0 / 393.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1302, allocations: 4 kB / 393.6 MB, free: 3.277 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005571/0.1307, allocations: 482.4 kB / 394.1 MB, free: 2.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1307, allocations: 0 / 394.1 MB, free: 2.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.1309, allocations: 39.92 kB / 394.1 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1309, allocations: 0 / 394.1 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.131, allocations: 8 kB / 394.1 MB, free: 2.703 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.131, allocations: 7.953 kB / 394.1 MB, free: 2.695 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.131, allocations: 4 kB / 394.1 MB, free: 2.691 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003517/0.1313, allocations: 287.2 kB / 394.4 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/0.1314, allocations: 85.02 kB / 394.5 MB, free: 2.293 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.1314, allocations: 4 kB / 394.5 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.042e-05/0.1315, allocations: 3.953 kB / 394.5 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.1315, allocations: 12.03 kB / 394.5 MB, free: 2.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.1316, allocations: 8 kB / 394.5 MB, free: 2.266 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.366e-05/0.1316, allocations: 91.27 kB / 394.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1316, allocations: 0 / 394.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.1319, allocations: 36 kB / 394.7 MB, free: 2.141 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.0005449/0.1325, allocations: 0.806 MB / 395.5 MB, free: 1.305 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002049/0.1327, allocations: 135.7 kB / 395.6 MB, free: 1.176 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1327, allocations: 0 / 395.6 MB, free: 1.176 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.826e-05/0.1328, allocations: 51.92 kB / 395.6 MB, free: 1.125 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.1329, allocations: 4 kB / 395.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1347, allocations: 1.887 MB / 397.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.135, allocations: 0.7242 MB / 398.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.368e-05/0.135, allocations: 17.08 kB / 398.3 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.173e-05/0.1351, allocations: 39.42 kB / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1351, allocations: 0 / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01191/0.147, allocations: 2.183 MB / 400.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.1473, allocations: 195.3 kB / 400.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.852, allocations: 0 / 400.7 MB, free: 12.02 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) Environment - environmentSimulation: