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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.006328/0.006327, allocations: 174.1 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.34/1.34, allocations: 194.5 MB / 210.3 MB, free: 8.512 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03823/0.03823, allocations: 8.084 MB / 263.6 MB, free: 3.129 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001624/0.001624, allocations: 124.5 kB / 310.6 MB, free: 27.13 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003686/0.0003686, allocations: 8 kB / 367.4 MB, free: 2.312 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.245, allocations: 46.2 MB / 413.6 MB, free: 47.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08999/0.335, allocations: 72.12 MB / 485.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.3353, allocations: 51.97 kB / 485.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006729/0.342, allocations: 2.646 MB / 488.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3421, allocations: 0 / 488.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.3421, allocations: 4 kB / 488.4 MB, free: 10.97 MB / 330.7 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.0005819/0.3427, allocations: 443.6 kB / 488.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3427, allocations: 8.031 kB / 488.8 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.3428, allocations: 58.72 kB / 488.9 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.3429, allocations: 19.77 kB / 488.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.343, allocations: 174.9 kB / 489.1 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.3431, allocations: 12.38 kB / 489.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.956e-05/0.3431, allocations: 24 kB / 489.1 MB, free: 10.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.3434, allocations: 164.4 kB / 489.3 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.3435, allocations: 0 / 489.3 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.3435, allocations: 11.94 kB / 489.3 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3435, allocations: 4 kB / 489.3 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.3437, allocations: 115.6 kB / 489.4 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3449, allocations: 0.7105 MB / 490.1 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.3452, allocations: 243.4 kB / 490.3 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.3453, allocations: 0 / 490.3 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.3455, allocations: 95.28 kB / 490.4 MB, free: 8.703 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.403e-06/0.3455, allocations: 0 / 490.4 MB, free: 8.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.000998/0.3465, allocations: 0.5093 MB / 490.9 MB, free: 8.141 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.3466, allocations: 51.41 kB / 491 MB, free: 8.078 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.138e-05/0.3467, allocations: 119.2 kB / 491.1 MB, free: 7.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.3467, allocations: 25.7 kB / 491.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.652e-05/0.3468, allocations: 143.9 kB / 491.3 MB, free: 7.777 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.583e-05/0.3468, allocations: 63.09 kB / 491.3 MB, free: 7.715 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.065e-06/0.3468, allocations: 4 kB / 491.3 MB, free: 7.711 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.347, allocations: 326.8 kB / 491.7 MB, free: 7.383 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.347, allocations: 43.98 kB / 491.7 MB, free: 7.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.3472, allocations: 108.8 kB / 491.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.3473, allocations: 60.94 kB / 491.9 MB, free: 7.152 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3473, allocations: 4 kB / 491.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000276/0.3476, allocations: 213.1 kB / 492.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3476, allocations: 8 kB / 492.1 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.3476, allocations: 0 / 492.1 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.3476, allocations: 7.938 kB / 492.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001957/0.3478, allocations: 55.91 kB / 492.1 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3478, allocations: 4 kB / 492.2 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.367e-05/0.3479, allocations: 8.219 kB / 492.2 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.3479, allocations: 8 kB / 492.2 MB, free: 6.848 MB / 330.7 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,$PRE.sampleHold.w,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.348, allocations: 137.8 kB / 492.3 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.3481, allocations: 15.86 kB / 492.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.886e-05/0.3481, allocations: 12.84 kB / 492.3 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3481, allocations: 4 kB / 492.3 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3481, allocations: 0 / 492.3 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3481, allocations: 0 / 492.3 MB, free: 6.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005674/0.3487, allocations: 0.5164 MB / 492.9 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3487, allocations: 3.938 kB / 492.9 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.3489, allocations: 39.92 kB / 492.9 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3489, allocations: 0 / 492.9 MB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.349, allocations: 8 kB / 492.9 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.349, allocations: 0 / 492.9 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.349, allocations: 0 / 492.9 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.3493, allocations: 311.2 kB / 493.2 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.3494, allocations: 85.02 kB / 493.3 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.3494, allocations: 4 kB / 493.3 MB, free: 5.625 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.08e-05/0.3495, allocations: 8.031 kB / 493.3 MB, free: 5.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.3496, allocations: 7.984 kB / 493.3 MB, free: 5.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.3496, allocations: 8 kB / 493.3 MB, free: 5.602 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.428e-05/0.3497, allocations: 95.89 kB / 493.4 MB, free: 5.508 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.018e-06/0.3497, allocations: 0 / 493.4 MB, free: 5.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.35, allocations: 39.94 kB / 493.4 MB, free: 5.469 MB / 330.7 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 (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.0006178/0.3506, allocations: 0.8385 MB / 494.3 MB, free: 4.605 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002365/0.3508, allocations: 142 kB / 494.4 MB, free: 4.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.3508, allocations: 0 / 494.4 MB, free: 4.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.314e-05/0.3509, allocations: 59.92 kB / 494.5 MB, free: 4.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.3511, allocations: 12.44 kB / 494.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.3531, allocations: 2.258 MB / 496.8 MB, free: 2.062 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3535, allocations: 0.7282 MB / 497.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.055e-05/0.3535, allocations: 17.36 kB / 497.5 MB, free: 1.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.222e-05/0.3536, allocations: 51.42 kB / 497.6 MB, free: 1.242 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3536, allocations: 0 / 497.6 MB, free: 1.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.3664, allocations: 2.373 MB / 499.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.3667, allocations: 211.8 kB / 0.4884 GB, free: 14.77 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.46/1.827, allocations: 3.438 kB / 0.4884 GB, free: 14.77 MB / 346.7 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/linux/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)