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.00142/0.001421, allocations: 176.7 kB / 7.649 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.431/1.431, allocations: 194.4 MB / 202.4 MB, free: 12.96 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03658/0.03658, allocations: 7.909 MB / 255.2 MB, free: 8.184 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.001582/0.001583, allocations: 128.1 kB / 301.9 MB, free: 32.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.013e-05/2.016e-05, allocations: 0 / 354.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2361/0.2361, allocations: 46.19 MB / 400.6 MB, free: 46.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09278/0.3289, allocations: 71.38 MB / 472 MB, free: 3.438 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001749/0.3291, allocations: 43.98 kB / 472 MB, free: 3.395 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006669/0.3358, allocations: 2.626 MB / 474.6 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3359, allocations: 0.8438 kB / 474.6 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.3359, allocations: 4.781 kB / 474.6 MB, free: 0.8359 MB / 314.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.0007276/0.3366, allocations: 433 kB / 475.1 MB, free: 376 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.286e-05/0.3367, allocations: 8.875 kB / 475.1 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.572e-05/0.3368, allocations: 19.77 kB / 475.1 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.337, allocations: 179.5 kB / 475.3 MB, free: 128 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.337, allocations: 4 kB / 475.3 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.913e-05/0.3371, allocations: 26.95 kB / 475.3 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002516/0.3374, allocations: 89.5 kB / 475.4 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003518/0.3377, allocations: 136.1 kB / 475.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.3378, allocations: 1.781 kB / 475.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.3378, allocations: 2.391 kB / 475.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3378, allocations: 4 kB / 475.5 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.3392, allocations: 0.6758 MB / 476.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.3396, allocations: 214.6 kB / 476.4 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.3398, allocations: 90.64 kB / 476.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.3398, allocations: 0.7812 kB / 476.5 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000179/0.34, allocations: 95.19 kB / 476.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.834e-06/0.34, allocations: 0.5312 kB / 476.6 MB, free: 14.72 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008399/0.3409, allocations: 445.1 kB / 477 MB, free: 14.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.3409, allocations: 59.86 kB / 477.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/0.341, allocations: 115.3 kB / 477.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.3411, allocations: 25.7 kB / 477.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.956e-05/0.3412, allocations: 136.6 kB / 477.3 MB, free: 13.87 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.646e-05/0.3412, allocations: 64.23 kB / 477.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.3412, allocations: 0 / 477.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3414, allocations: 322.8 kB / 477.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.61e-05/0.3415, allocations: 36.94 kB / 477.8 MB, free: 13.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3416, allocations: 108.1 kB / 477.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.852e-05/0.3417, allocations: 48.92 kB / 477.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.3417, allocations: 6.844 kB / 477.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002457/0.3419, allocations: 179.4 kB / 478.1 MB, free: 13.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.342, allocations: 8.578 kB / 478.1 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.342, allocations: 4 kB / 478.1 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-05/0.342, allocations: 6.438 kB / 478.1 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.3422, allocations: 51.91 kB / 478.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.3422, allocations: 4 kB / 478.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.299e-05/0.3423, allocations: 8.219 kB / 478.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.3423, allocations: 8 kB / 478.2 MB, free: 13.01 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 () * 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 9.155e-05/0.3424, allocations: 108.7 kB / 478.3 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001861/0.3426, allocations: 131 kB / 478.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.3426, allocations: 11.86 kB / 478.4 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.594e-05/0.3427, allocations: 20.73 kB / 478.4 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3427, allocations: 0 / 478.4 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.702e-06/0.3427, allocations: 0.875 kB / 478.4 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3427, allocations: 4 kB / 478.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005877/0.3433, allocations: 470.7 kB / 478.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3433, allocations: 0 / 478.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.3435, allocations: 38.19 kB / 479 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3435, allocations: 0 / 479 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.3436, allocations: 7.062 kB / 479 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3436, allocations: 0 / 479 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3436, allocations: 7.984 kB / 479 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.3439, allocations: 277.1 kB / 479.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.588e-05/0.344, allocations: 88.92 kB / 479.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.344, allocations: 8.031 kB / 479.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.006e-05/0.3441, allocations: 3.938 kB / 479.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.3441, allocations: 11.98 kB / 479.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.3441, allocations: 4 kB / 479.3 MB, free: 11.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.354e-05/0.3442, allocations: 96.28 kB / 479.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3442, allocations: 1.312 kB / 479.4 MB, free: 11.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002755/0.3445, allocations: 32 kB / 479.5 MB, free: 11.64 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 () * 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.000541/0.345, allocations: 0.8144 MB / 480.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.3452, allocations: 112.2 kB / 480.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3452, allocations: 8.062 kB / 480.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.608e-05/0.3453, allocations: 59.12 kB / 480.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.3455, allocations: 0 / 480.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.3465, allocations: 0.5031 MB / 481 MB, free: 10.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.3468, allocations: 0.7336 MB / 481.7 MB, free: 9.363 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.195e-05/0.3469, allocations: 13.2 kB / 481.7 MB, free: 9.352 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.608e-05/0.3469, allocations: 47.42 kB / 481.8 MB, free: 9.305 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3469, allocations: 0 / 481.8 MB, free: 9.305 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01973/0.3667, allocations: 2.167 MB / 483.9 MB, free: 7.191 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.367, allocations: 171 kB / 484.1 MB, free: 7 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/2.076, allocations: 2.109 kB / 484.1 MB, free: 7 MB / 330.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)