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.001135/0.001135, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009402/0.009402, allocations: 170 kB / 16.26 MB, free: 6.613 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.705/1.705, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04149/0.04149, allocations: 8.103 MB / 278.8 MB, free: 13.11 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.0006372/0.0006373, allocations: 12 kB / 339 MB, free: 26.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1171, allocations: 49.27 MB / 388.3 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002285/0.1195, allocations: 1.611 MB / 389.9 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003642/0.1199, allocations: 147.5 kB / 390 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.927e-05/0.1199, allocations: 4 kB / 390 MB, free: 7.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.592e-05/0.12, allocations: 7.922 kB / 390 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.1201, allocations: 43.67 kB / 390.1 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.1203, allocations: 31.98 kB / 390.1 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001892/0.1205, allocations: 159.3 kB / 390.3 MB, free: 7.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.1207, allocations: 78.02 kB / 390.3 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.1208, allocations: 55.8 kB / 390.4 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1209, allocations: 59.7 kB / 390.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.121, allocations: 8 kB / 390.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.856e-05/0.121, allocations: 12 kB / 390.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.31e-05/0.1211, allocations: 31.84 kB / 390.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.571e-05/0.1212, allocations: 97.38 kB / 390.6 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.1214, allocations: 175.6 kB / 390.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1214, allocations: 0 / 390.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1214, allocations: 4 kB / 390.8 MB, free: 6.699 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1214, allocations: 0 / 390.8 MB, free: 6.699 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.0005281/0.1219, allocations: 423 kB / 391.2 MB, free: 6.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.122, allocations: 15.97 kB / 391.2 MB, free: 6.219 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.403e-05/0.122, allocations: 50.67 kB / 391.2 MB, free: 6.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.857e-05/0.1221, allocations: 16.75 kB / 391.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.1222, allocations: 184.2 kB / 391.4 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.1223, allocations: 12.38 kB / 391.4 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.1223, allocations: 16.38 kB / 391.5 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.1226, allocations: 162.1 kB / 391.6 MB, free: 5.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.1226, allocations: 3.938 kB / 391.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.1226, allocations: 7.984 kB / 391.6 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.1226, allocations: 4 kB / 391.6 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.1228, allocations: 107.8 kB / 391.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001121/0.124, allocations: 0.6831 MB / 392.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005104/0.1245, allocations: 223.6 kB / 392.6 MB, free: 4.613 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002214/0.1247, allocations: 96.83 kB / 392.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.1247, allocations: 0 / 392.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.1248, allocations: 30.56 kB / 392.8 MB, free: 4.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 8.51e-07/0.1248, allocations: 0 / 392.8 MB, free: 4.477 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.000916/0.1257, allocations: 489.7 kB / 393.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.1258, allocations: 63.34 kB / 393.3 MB, free: 3.875 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.1259, allocations: 121.7 kB / 393.4 MB, free: 3.746 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/0.126, allocations: 29.7 kB / 393.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1261, allocations: 128.1 kB / 393.6 MB, free: 3.582 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.1261, allocations: 63.09 kB / 393.6 MB, free: 3.52 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.1262, allocations: 29.7 kB / 393.7 MB, free: 3.484 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.1263, allocations: 318.8 kB / 394 MB, free: 3.164 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.072e-05/0.1264, allocations: 39.98 kB / 394 MB, free: 3.125 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.1265, allocations: 90.22 kB / 394.1 MB, free: 3.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.1267, allocations: 136.7 kB / 394.2 MB, free: 2.871 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1267, allocations: 4 kB / 394.3 MB, free: 2.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002627/0.127, allocations: 177.4 kB / 394.4 MB, free: 2.688 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.127, allocations: 8 kB / 394.4 MB, free: 2.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1271, allocations: 7.938 kB / 394.4 MB, free: 2.672 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.1271, allocations: 4 kB / 394.4 MB, free: 2.668 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1273, allocations: 51.91 kB / 394.5 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.1273, allocations: 7.938 kB / 394.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.347e-05/0.1274, allocations: 8.156 kB / 394.5 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.1274, allocations: 8 kB / 394.5 MB, free: 2.594 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.0001271/0.1275, allocations: 125.8 kB / 394.6 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/0.1275, allocations: 11.91 kB / 394.7 MB, free: 2.449 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.731e-05/0.1276, allocations: 12.84 kB / 394.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1276, allocations: 0 / 394.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.1276, allocations: 7.938 kB / 394.7 MB, free: 2.43 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1276, allocations: 7.922 kB / 394.7 MB, free: 2.422 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006528/0.1283, allocations: 0.494 MB / 395.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1283, allocations: 3.938 kB / 395.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.1285, allocations: 39.92 kB / 395.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1285, allocations: 0 / 395.2 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.1285, allocations: 4 kB / 395.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1285, allocations: 0 / 395.2 MB, free: 1.828 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1285, allocations: 4 kB / 395.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.1289, allocations: 271.4 kB / 395.5 MB, free: 1.543 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.793e-05/0.129, allocations: 92.98 kB / 395.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.129, allocations: 0 / 395.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.764e-05/0.1291, allocations: 11.94 kB / 395.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.257e-05/0.1291, allocations: 7.984 kB / 395.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.1291, allocations: 0 / 395.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.016e-05/0.1292, allocations: 99.28 kB / 395.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1292, allocations: 0 / 395.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.1295, allocations: 32 kB / 395.7 MB, free: 1.285 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.0006789/0.1301, allocations: 0.8098 MB / 396.5 MB, free: 456 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002131/0.1304, allocations: 116.1 kB / 396.7 MB, free: 340 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1304, allocations: 0 / 396.7 MB, free: 340 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.969e-05/0.1305, allocations: 59.8 kB / 396.7 MB, free: 280 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.1307, allocations: 15.98 kB / 396.7 MB, free: 264 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.1331, allocations: 2.119 MB / 398.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.1334, allocations: 0.7204 MB / 399.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.684e-05/0.1335, allocations: 13.08 kB / 399.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.683e-05/0.1336, allocations: 43.42 kB / 399.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1336, allocations: 0 / 399.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01363/0.1472, allocations: 2.269 MB / 401.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002501/0.1475, allocations: 216.2 kB / 402.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.081, allocations: 0 / 402.1 MB, free: 10.8 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/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)