Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009165/0.009165, allocations: 102.8 kB / 15.74 MB, free: 6.031 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.001605/0.001605, allocations: 191 kB / 16.67 MB, free: 5.965 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.83/1.83, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0412/0.0412, allocations: 8.118 MB / 278 MB, free: 13.06 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.001445/0.001445, allocations: 71.91 kB / 386.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3588, allocations: 48.29 MB / 435 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003543/0.3624, allocations: 1.97 MB / 437 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009874/0.3634, allocations: 0.5675 MB / 437.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/0.3635, allocations: 2.75 kB / 437.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.818e-05/0.3636, allocations: 26.02 kB / 437.6 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.3638, allocations: 42.52 kB / 437.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.364, allocations: 59.27 kB / 437.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002687/0.3643, allocations: 208.9 kB / 437.9 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.3646, allocations: 103.9 kB / 438 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.3647, allocations: 82.75 kB / 438 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.3649, allocations: 89.97 kB / 438.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.805e-05/0.365, allocations: 24.88 kB / 438.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.714e-05/0.365, allocations: 21.16 kB / 438.2 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.859e-05/0.3651, allocations: 50.61 kB / 438.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.3652, allocations: 97.8 kB / 438.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.3656, allocations: 226.2 kB / 438.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3656, allocations: 1.094 kB / 438.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3656, allocations: 0 / 438.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3656, allocations: 0 / 438.5 MB, free: 5.512 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007706/0.3664, allocations: 486.3 kB / 439 MB, free: 5.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3664, allocations: 13.22 kB / 439 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.612e-05/0.3665, allocations: 18.69 kB / 439.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.3666, allocations: 192 kB / 439.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.3667, allocations: 13.3 kB / 439.3 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.065e-05/0.3667, allocations: 29.36 kB / 439.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.3671, allocations: 194.5 kB / 439.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.3671, allocations: 5.656 kB / 439.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.3671, allocations: 5.797 kB / 439.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3672, allocations: 5.969 kB / 439.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000258/0.3674, allocations: 118 kB / 439.6 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.3686, allocations: 0.7243 MB / 440.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/0.369, allocations: 260.5 kB / 440.6 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.3692, allocations: 107.6 kB / 440.7 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.3692, allocations: 6.312 kB / 440.7 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002566/0.3695, allocations: 129 kB / 440.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.703e-06/0.3695, allocations: 0 / 440.8 MB, free: 3.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001137/0.3706, allocations: 0.647 MB / 441.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.3707, allocations: 59.09 kB / 441.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.902e-05/0.3708, allocations: 134.4 kB / 441.7 MB, free: 3.254 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.3708, allocations: 34.12 kB / 441.7 MB, free: 3.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.879e-05/0.3709, allocations: 135.5 kB / 441.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.431e-05/0.3709, allocations: 87.81 kB / 441.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/0.371, allocations: 57.3 kB / 442 MB, free: 2.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.289e-05/0.3711, allocations: 331.2 kB / 442.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.3712, allocations: 59.77 kB / 442.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.3714, allocations: 133.9 kB / 442.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.3717, allocations: 213.8 kB / 442.7 MB, free: 2.383 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3717, allocations: 4 kB / 442.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003521/0.3721, allocations: 257.1 kB / 442.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.3721, allocations: 5.5 kB / 442.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.3721, allocations: 3.547 kB / 443 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.3722, allocations: 4.125 kB / 443 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002367/0.3724, allocations: 57.77 kB / 443 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3724, allocations: 4.875 kB / 443 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.989e-05/0.3725, allocations: 16.72 kB / 443 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.3725, allocations: 12.25 kB / 443 MB, free: 2.238 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(flow=false fixed = true ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 10 (intervalMeasure.last_time,$PRE.intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,intervalMeasure.prev_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.next_phi,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.0001625/0.3727, allocations: 151.5 kB / 443.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.3727, allocations: 10.06 kB / 443.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.3728, allocations: 20.77 kB / 443.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.3728, allocations: 6.734 kB / 443.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.3728, allocations: 0 / 443.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3728, allocations: 9.609 kB / 443.2 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008102/0.3737, allocations: 0.6194 MB / 443.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3737, allocations: 0.5625 kB / 443.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.3739, allocations: 42.59 kB / 443.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3739, allocations: 5.25 kB / 443.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3739, allocations: 7.438 kB / 443.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3739, allocations: 2.812 kB / 443.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3739, allocations: 1.281 kB / 443.9 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004565/0.3744, allocations: 387 kB / 444.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.3744, allocations: 89.47 kB / 444.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.3745, allocations: 8.547 kB / 444.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.3746, allocations: 7.75 kB / 444.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.3746, allocations: 12.84 kB / 444.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.3747, allocations: 12.44 kB / 444.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.851e-05/0.3747, allocations: 103.6 kB / 444.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.3747, allocations: 4 kB / 444.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003245/0.3751, allocations: 52.3 kB / 444.6 MB, free: 1.148 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time) * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001107/0.3752, allocations: 109.3 kB / 444.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003419/0.3755, allocations: 180.8 kB / 444.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3755, allocations: 0 / 444.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.3757, allocations: 91.58 kB / 445 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.376, allocations: 17.42 kB / 445 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009794/0.3769, allocations: 0.5878 MB / 445.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3772, allocations: 0.7304 MB / 446.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.228e-05/0.3773, allocations: 16.8 kB / 446.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.958e-05/0.3773, allocations: 17.94 kB / 446.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3773, allocations: 1.281 kB / 446.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of Templates: time 0.005038/0.3824, allocations: 1.583 MB / 447.9 MB, free: 15.64 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)