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.005054/0.005054, allocations: 102 kB / 15.73 MB, free: 6.039 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.001091/0.001091, allocations: 194.9 kB / 16.68 MB, free: 5.961 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.43/1.43, allocations: 205.1 MB / 222.6 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04216/0.04216, allocations: 8.121 MB / 278 MB, free: 12.93 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.001534/0.001534, allocations: 71.89 kB / 386.2 MB, free: 9.512 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2698, allocations: 48.29 MB / 434.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002612/0.2724, allocations: 1.966 MB / 436.5 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007274/0.2732, allocations: 0.5658 MB / 437 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.373e-05/0.2732, allocations: 3.125 kB / 437 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.898e-05/0.2733, allocations: 25.22 kB / 437.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001107/0.2734, allocations: 49.77 kB / 437.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.2736, allocations: 52.86 kB / 437.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001825/0.2738, allocations: 214.1 kB / 437.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.274, allocations: 94.78 kB / 437.5 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2741, allocations: 87.56 kB / 437.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.2742, allocations: 89.77 kB / 437.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.2743, allocations: 24.56 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.17e-05/0.2743, allocations: 22 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.814e-05/0.2744, allocations: 49.39 kB / 437.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.179e-05/0.2744, allocations: 99.3 kB / 437.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.2747, allocations: 224.1 kB / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2747, allocations: 0.5156 kB / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2747, allocations: 0 / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.2747, allocations: 0 / 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.0006093/0.2753, allocations: 486.9 kB / 438.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2754, allocations: 16.64 kB / 438.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.947e-05/0.2754, allocations: 54.75 kB / 438.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.2755, allocations: 19.31 kB / 438.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.935e-05/0.2756, allocations: 183 kB / 438.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.2756, allocations: 14 kB / 438.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.424e-05/0.2756, allocations: 23.3 kB / 438.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.276, allocations: 199.5 kB / 439 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.276, allocations: 1.812 kB / 439 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.276, allocations: 10.47 kB / 439 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.276, allocations: 8.281 kB / 439 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002274/0.2763, allocations: 115.4 kB / 439.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.2773, allocations: 0.7236 MB / 439.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003868/0.2777, allocations: 265.9 kB / 440.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.278, allocations: 111.1 kB / 440.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.278, allocations: 2.281 kB / 440.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.2783, allocations: 130.8 kB / 440.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.763e-06/0.2783, allocations: 1.156 kB / 440.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001034/0.2793, allocations: 0.6348 MB / 441 MB, free: 3.059 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.2793, allocations: 62.69 kB / 441.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.806e-05/0.2794, allocations: 132.3 kB / 441.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.2795, allocations: 35.8 kB / 441.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.2795, allocations: 135.4 kB / 441.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.735e-05/0.2796, allocations: 80.3 kB / 441.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.383e-05/0.2796, allocations: 62.69 kB / 441.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.59e-05/0.2797, allocations: 331.4 kB / 441.8 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.2798, allocations: 63.25 kB / 441.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.28, allocations: 129.3 kB / 442 MB, free: 2.156 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.2803, allocations: 213.3 kB / 442.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2803, allocations: 5 kB / 442.2 MB, free: 2 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003851/0.2807, allocations: 256 kB / 442.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2807, allocations: 5.969 kB / 442.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2807, allocations: 4.797 kB / 442.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.2807, allocations: 3.344 kB / 442.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.281, allocations: 58.08 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.281, allocations: 8.109 kB / 442.6 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.663e-05/0.2811, allocations: 18.92 kB / 442.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.2811, allocations: 12.5 kB / 442.6 MB, free: 1.855 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.0001109/0.2812, allocations: 146.6 kB / 442.7 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.045e-05/0.2812, allocations: 13.34 kB / 442.7 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.2813, allocations: 22.59 kB / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2813, allocations: 2.75 kB / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2813, allocations: 0 / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2813, allocations: 3.938 kB / 442.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006508/0.282, allocations: 0.6226 MB / 443.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.282, allocations: 0 / 443.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2822, allocations: 38.92 kB / 443.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.2822, allocations: 5.406 kB / 443.4 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2822, allocations: 8.625 kB / 443.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.2822, allocations: 2.344 kB / 443.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2822, allocations: 3.938 kB / 443.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004115/0.2827, allocations: 383.6 kB / 443.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.2827, allocations: 94.5 kB / 443.9 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.744e-05/0.2827, allocations: 6.906 kB / 443.9 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.2828, allocations: 9.766 kB / 443.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.2829, allocations: 16.88 kB / 444 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.2829, allocations: 12.34 kB / 444 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.104e-05/0.283, allocations: 97.73 kB / 444.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.283, allocations: 0 / 444.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000292/0.2833, allocations: 49.03 kB / 444.1 MB, free: 0.7773 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.0005509/0.2838, allocations: 0.9373 MB / 445 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.2841, allocations: 177.1 kB / 445.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2841, allocations: 0 / 445.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.2843, allocations: 87.41 kB / 445.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.2845, allocations: 18.08 kB / 445.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.2868, allocations: 2.313 MB / 447.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.2871, allocations: 0.7259 MB / 448.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.979e-05/0.2872, allocations: 22.12 kB / 448.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.2873, allocations: 59.22 kB / 448.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2873, allocations: 0 / 448.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02094/0.3082, allocations: 3.434 MB / 451.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.481/7.789, allocations: 22.97 kB / 451.9 MB, free: 12.17 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)