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/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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001374/0.001374, allocations: 181.2 kB / 16.12 MB, free: 5.574 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.4/1.4, allocations: 194.5 MB / 211.3 MB, free: 2.941 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03698/0.03698, allocations: 8.112 MB / 264.6 MB, free: 12.58 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.001633/0.001633, allocations: 124.1 kB / 311.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.0003941, allocations: 8 kB / 368.5 MB, free: 4.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.224, allocations: 46.19 MB / 414.7 MB, free: 65.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08456/0.3086, allocations: 71.99 MB / 486.7 MB, free: 9.805 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.3089, allocations: 47.98 kB / 486.7 MB, free: 9.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006207/0.3152, allocations: 2.439 MB / 489.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3152, allocations: 0 / 489.2 MB, free: 7.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.3152, allocations: 4 kB / 489.2 MB, free: 7.316 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005787/0.3158, allocations: 411.2 kB / 489.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.3159, allocations: 12.03 kB / 489.6 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.152e-05/0.3159, allocations: 20.75 kB / 489.6 MB, free: 6.832 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001784/0.3161, allocations: 184.1 kB / 489.8 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.546e-05/0.3162, allocations: 12.38 kB / 489.8 MB, free: 6.602 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.3162, allocations: 20.38 kB / 489.8 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.3165, allocations: 158.1 kB / 490 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.3165, allocations: 4.125 kB / 490 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.3166, allocations: 7.938 kB / 490 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.3166, allocations: 4 kB / 490 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.3168, allocations: 99.95 kB / 490.1 MB, free: 6.309 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.318, allocations: 0.7026 MB / 490.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.3184, allocations: 223.6 kB / 491 MB, free: 5.293 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.3186, allocations: 92.75 kB / 491.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.3186, allocations: 0 / 491.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.3186, allocations: 42.56 kB / 491.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.3186, allocations: 0 / 491.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007848/0.3194, allocations: 473.8 kB / 491.6 MB, free: 4.637 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.3195, allocations: 55.41 kB / 491.7 MB, free: 4.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.9e-05/0.3196, allocations: 121.7 kB / 491.8 MB, free: 4.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.3196, allocations: 33.69 kB / 491.8 MB, free: 4.402 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.656e-05/0.3197, allocations: 136 kB / 491.9 MB, free: 4.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.629e-05/0.3197, allocations: 59.19 kB / 492 MB, free: 4.207 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.3198, allocations: 4 kB / 492 MB, free: 4.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3199, allocations: 318.8 kB / 492.3 MB, free: 3.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.975e-05/0.32, allocations: 43.97 kB / 492.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.3201, allocations: 85.08 kB / 492.4 MB, free: 3.738 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.3203, allocations: 144.1 kB / 492.6 MB, free: 3.582 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3203, allocations: 7.938 kB / 492.6 MB, free: 3.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000282/0.3206, allocations: 177.6 kB / 492.8 MB, free: 3.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3206, allocations: 4 kB / 492.8 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3206, allocations: 4 kB / 492.8 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3207, allocations: 0 / 492.8 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.3208, allocations: 39.98 kB / 492.8 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.3209, allocations: 7.938 kB / 492.8 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.3209, allocations: 15.84 kB / 492.8 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.321, allocations: 8 kB / 492.8 MB, free: 3.316 MB / 330.7 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 0.0001193/0.3211, allocations: 121.8 kB / 493 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.434e-05/0.3211, allocations: 19.92 kB / 493 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.3212, allocations: 20.84 kB / 493 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3212, allocations: 0 / 493 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3212, allocations: 0 / 493 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3212, allocations: 3.938 kB / 493 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006337/0.3218, allocations: 498.2 kB / 493.5 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3219, allocations: 4 kB / 493.5 MB, free: 2.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.322, allocations: 39.92 kB / 493.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.322, allocations: 0 / 493.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.3221, allocations: 0 / 493.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3221, allocations: 3.938 kB / 493.5 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3221, allocations: 0 / 493.5 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003273/0.3224, allocations: 283.2 kB / 493.8 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.3225, allocations: 92.95 kB / 493.9 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.3225, allocations: 4 kB / 493.9 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.721e-05/0.3226, allocations: 4 kB / 493.9 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.01e-05/0.3226, allocations: 12.03 kB / 493.9 MB, free: 2.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.3226, allocations: 0 / 493.9 MB, free: 2.133 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.936e-05/0.3227, allocations: 91.27 kB / 494 MB, free: 2.043 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3227, allocations: 0 / 494 MB, free: 2.043 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002613/0.323, allocations: 40 kB / 494 MB, free: 2.004 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,idealSensor.flange.phi) * 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.0001242/0.3231, allocations: 95.34 kB / 494.1 MB, free: 1.898 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.3233, allocations: 127.2 kB / 494.3 MB, free: 1.777 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3233, allocations: 0 / 494.3 MB, free: 1.777 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.43e-05/0.3234, allocations: 55.91 kB / 494.3 MB, free: 1.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.3236, allocations: 19.86 kB / 494.3 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.3247, allocations: 0.6672 MB / 495 MB, free: 1.016 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.3251, allocations: 0.7204 MB / 495.7 MB, free: 276 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.375e-05/0.3251, allocations: 13.08 kB / 495.7 MB, free: 260 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/0.3252, allocations: 15.44 kB / 495.8 MB, free: 248 kB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3252, allocations: 0 / 495.8 MB, free: 248 kB / 330.7 MB Notification: Performance of Templates: time 0.003104/0.3283, allocations: 0.9098 MB / 496.7 MB, free: 15.34 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (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 & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)