Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",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.001599/0.001599, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00197/0.00197, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.389/1.389, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04218/0.04218, allocations: 8.101 MB / 277.9 MB, free: 13.18 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.001447/0.001448, allocations: 67.91 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0686/0.07006, allocations: 48.3 MB / 385.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002724/0.07281, allocations: 1.939 MB / 387.5 MB, free: 8.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003829/0.07321, allocations: 247.2 kB / 387.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.967e-05/0.07328, allocations: 4 kB / 387.8 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.792e-05/0.07334, allocations: 23.72 kB / 387.8 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.779e-05/0.07343, allocations: 35.64 kB / 387.8 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.07362, allocations: 59.86 kB / 387.9 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.07379, allocations: 195.1 kB / 388.1 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.07397, allocations: 98.03 kB / 388.2 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.927e-05/0.07403, allocations: 67.8 kB / 388.3 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.95e-05/0.07414, allocations: 83.67 kB / 388.3 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.07417, allocations: 20 kB / 388.4 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.92e-05/0.0742, allocations: 16 kB / 388.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.07424, allocations: 39.86 kB / 388.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.318e-05/0.07433, allocations: 91.59 kB / 388.5 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.07451, allocations: 199.6 kB / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.07452, allocations: 0 / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.07452, allocations: 0 / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.07454, allocations: 4 kB / 388.7 MB, free: 6.949 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005444/0.07509, allocations: 463.3 kB / 389.1 MB, free: 6.441 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.07512, allocations: 15.89 kB / 389.2 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.229e-05/0.07518, allocations: 50.73 kB / 389.2 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.691e-05/0.07522, allocations: 16.75 kB / 389.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.695e-05/0.07533, allocations: 188 kB / 389.4 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.07535, allocations: 16.73 kB / 389.4 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.543e-05/0.07539, allocations: 28.36 kB / 389.5 MB, free: 6.086 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.07564, allocations: 168.9 kB / 389.6 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.07566, allocations: 3.938 kB / 389.6 MB, free: 5.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.07568, allocations: 7.938 kB / 389.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.07569, allocations: 4 kB / 389.6 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.07586, allocations: 111.7 kB / 389.7 MB, free: 5.793 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008801/0.07675, allocations: 0.7065 MB / 390.5 MB, free: 5.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.07705, allocations: 227.5 kB / 390.7 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.07724, allocations: 96.81 kB / 390.8 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.07727, allocations: 4 kB / 390.8 MB, free: 4.668 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/0.07741, allocations: 91.59 kB / 390.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.07742, allocations: 0 / 390.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0007495/0.07818, allocations: 0.5159 MB / 391.4 MB, free: 4.004 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/0.07822, allocations: 51.41 kB / 391.4 MB, free: 3.941 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.07831, allocations: 126 kB / 391.6 MB, free: 3.805 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.07833, allocations: 33.7 kB / 391.6 MB, free: 3.766 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.696e-05/0.07839, allocations: 136 kB / 391.7 MB, free: 3.629 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.838e-05/0.07845, allocations: 63.09 kB / 391.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.07851, allocations: 45.7 kB / 391.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.0786, allocations: 322.8 kB / 392.1 MB, free: 3.191 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.493e-05/0.07868, allocations: 51.92 kB / 392.2 MB, free: 3.141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.07881, allocations: 102.8 kB / 392.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.07901, allocations: 166.6 kB / 392.5 MB, free: 2.828 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.07902, allocations: 3.938 kB / 392.5 MB, free: 2.824 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002622/0.07929, allocations: 209.4 kB / 392.7 MB, free: 2.613 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.07931, allocations: 8 kB / 392.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.07932, allocations: 0 / 392.7 MB, free: 2.605 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.07934, allocations: 4 kB / 392.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.07951, allocations: 51.91 kB / 392.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.07953, allocations: 4 kB / 392.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.831e-05/0.07959, allocations: 4 kB / 392.7 MB, free: 2.543 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.07961, allocations: 8 kB / 392.7 MB, free: 2.535 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001005/0.07971, allocations: 141.9 kB / 392.9 MB, free: 2.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.07974, allocations: 15.84 kB / 392.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.647e-05/0.07978, allocations: 16.83 kB / 392.9 MB, free: 2.355 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.07979, allocations: 4 kB / 392.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.0798, allocations: 3.938 kB / 392.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.07981, allocations: 11.92 kB / 392.9 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005577/0.08037, allocations: 0.5099 MB / 393.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.08039, allocations: 0 / 393.4 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.08057, allocations: 35.98 kB / 393.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.08058, allocations: 3.984 kB / 393.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.0806, allocations: 4 kB / 393.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.08061, allocations: 4 kB / 393.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.08061, allocations: 0 / 393.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.08092, allocations: 301.8 kB / 393.8 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.08096, allocations: 85.02 kB / 393.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.08099, allocations: 8 kB / 393.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.31e-05/0.08107, allocations: 4 kB / 393.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-05/0.08111, allocations: 15.88 kB / 393.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.08112, allocations: 4 kB / 393.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.956e-05/0.08117, allocations: 102.9 kB / 394 MB, free: 1.184 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08118, allocations: 0 / 394 MB, free: 1.184 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.08144, allocations: 36 kB / 394 MB, free: 1.148 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005405/0.08199, allocations: 0.8295 MB / 394.9 MB, free: 296 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002202/0.08222, allocations: 139.8 kB / 395 MB, free: 156 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.08223, allocations: 0 / 395 MB, free: 156 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.365e-05/0.08232, allocations: 69.84 kB / 395.1 MB, free: 88 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.08254, allocations: 8.438 kB / 395.1 MB, free: 80 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.08451, allocations: 2.094 MB / 397.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.08476, allocations: 0.7316 MB / 397.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.812e-05/0.08482, allocations: 13.42 kB / 397.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.08489, allocations: 47.42 kB / 398 MB, free: 13.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.0849, allocations: 0 / 398 MB, free: 13.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02979/0.1147, allocations: 2.696 MB / 400.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.209/7.324, allocations: 4.438 kB / 400.7 MB, free: 10.4 MB / 302.1 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)