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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",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.007007/0.007007, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001503/0.001503, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.478/1.478, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05151/0.05151, allocations: 8.113 MB / 278 MB, free: 13.05 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.00217/0.00217, allocations: 71.89 kB / 386.2 MB, free: 9.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.265, allocations: 48.3 MB / 434.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002794/0.2678, allocations: 1.954 MB / 436.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000902/0.2688, allocations: 0.5751 MB / 437 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.518e-05/0.2689, allocations: 3.344 kB / 437 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.799e-05/0.269, allocations: 24.58 kB / 437.1 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001487/0.2691, allocations: 46.75 kB / 437.1 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.2693, allocations: 51.95 kB / 437.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002134/0.2695, allocations: 211.6 kB / 437.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.2697, allocations: 100.6 kB / 437.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.2699, allocations: 83.45 kB / 437.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.2701, allocations: 90.17 kB / 437.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.2701, allocations: 20.91 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.553e-05/0.2701, allocations: 20.53 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.269e-05/0.2702, allocations: 46.06 kB / 437.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.972e-05/0.2703, allocations: 102.5 kB / 437.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.2706, allocations: 221.9 kB / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2706, allocations: 0 / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2706, allocations: 0.6562 kB / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.2706, allocations: 4 kB / 438 MB, free: 5.176 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.0006258/0.2712, allocations: 489.5 kB / 438.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.2713, allocations: 13.48 kB / 438.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.561e-05/0.2713, allocations: 58.72 kB / 438.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.213e-05/0.2714, allocations: 23.03 kB / 438.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.2715, allocations: 187.4 kB / 438.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2715, allocations: 26.42 kB / 438.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/0.2716, allocations: 23.16 kB / 438.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.2719, allocations: 191.8 kB / 439 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.2719, allocations: 5.844 kB / 439 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.272, allocations: 5.219 kB / 439 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.272, allocations: 5.656 kB / 439 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.2722, allocations: 120.1 kB / 439.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.2732, allocations: 0.7267 MB / 439.9 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.2736, allocations: 257.7 kB / 440.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000209/0.2738, allocations: 112.6 kB / 440.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.2739, allocations: 2.5 kB / 440.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.2741, allocations: 128.3 kB / 440.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.505e-06/0.2741, allocations: 3.938 kB / 440.4 MB, free: 3.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009965/0.2752, allocations: 0.6562 MB / 441 MB, free: 3.023 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2752, allocations: 56.3 kB / 441.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.061e-05/0.2753, allocations: 128 kB / 441.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2753, allocations: 31.98 kB / 441.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.451e-05/0.2754, allocations: 139 kB / 441.4 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.2754, allocations: 88.52 kB / 441.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.482e-05/0.2755, allocations: 58.25 kB / 441.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.2756, allocations: 327.4 kB / 441.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2757, allocations: 63.44 kB / 441.9 MB, free: 2.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2759, allocations: 130.4 kB / 442 MB, free: 2.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.2762, allocations: 209.1 kB / 442.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2762, allocations: 0.5312 kB / 442.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004299/0.2766, allocations: 253 kB / 442.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.2767, allocations: 6.312 kB / 442.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2767, allocations: 5.781 kB / 442.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.2767, allocations: 7.812 kB / 442.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002381/0.2769, allocations: 62.86 kB / 442.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.277, allocations: 3.359 kB / 442.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.947e-05/0.2771, allocations: 17.62 kB / 442.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.821e-05/0.2771, allocations: 13.75 kB / 442.6 MB, free: 1.836 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.0001526/0.2772, allocations: 138.2 kB / 442.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.2773, allocations: 11.47 kB / 442.8 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.2773, allocations: 28.34 kB / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2773, allocations: 2.219 kB / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.2774, allocations: 0 / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.2774, allocations: 6.172 kB / 442.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007428/0.2781, allocations: 0.6221 MB / 443.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.2781, allocations: 1.375 kB / 443.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.2783, allocations: 48.47 kB / 443.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.2783, allocations: 5.312 kB / 443.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.2784, allocations: 6.75 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.2784, allocations: 4.609 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2784, allocations: 1.375 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.2788, allocations: 384.1 kB / 443.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.2788, allocations: 93.92 kB / 443.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.038e-05/0.2789, allocations: 8.688 kB / 444 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.279, allocations: 7.953 kB / 444 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.279, allocations: 20.3 kB / 444 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.2791, allocations: 7.812 kB / 444 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.669e-05/0.2791, allocations: 99.02 kB / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2791, allocations: 1.375 kB / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.2794, allocations: 47.88 kB / 444.1 MB, free: 0.7539 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.0006446/0.2801, allocations: 0.9293 MB / 445.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003652/0.2805, allocations: 181.5 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2805, allocations: 4.188 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001501/0.2806, allocations: 87.31 kB / 445.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.2809, allocations: 17.16 kB / 445.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/0.2838, allocations: 2.304 MB / 447.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.2843, allocations: 0.7314 MB / 448.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.435e-05/0.2844, allocations: 16.7 kB / 448.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.2845, allocations: 56.03 kB / 448.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2845, allocations: 4 kB / 448.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02914/0.3136, allocations: 3.375 MB / 451.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.183/8.496, allocations: 9.781 kB / 451.8 MB, free: 12.18 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)