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.001139/0.001139, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001105/0.001105, allocations: 192.3 kB / 16.25 MB, free: 6.629 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.211/1.211, allocations: 205.1 MB / 222.1 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03877/0.03877, allocations: 8.115 MB / 277.6 MB, free: 13.31 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.001342/0.001342, allocations: 68.38 kB / 336.8 MB, free: 26.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.06969, allocations: 48.31 MB / 385.1 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002927/0.07265, allocations: 2.019 MB / 387.1 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008436/0.07353, allocations: 0.5581 MB / 387.7 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.32e-05/0.07363, allocations: 4 kB / 387.7 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.656e-05/0.07372, allocations: 19.84 kB / 387.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001266/0.07385, allocations: 39.67 kB / 387.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001603/0.07402, allocations: 43.97 kB / 387.8 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.07424, allocations: 211.2 kB / 388 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.07442, allocations: 98.17 kB / 388.1 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.07459, allocations: 87.77 kB / 388.2 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.07471, allocations: 91.61 kB / 388.3 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.07475, allocations: 24 kB / 388.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.121e-05/0.07479, allocations: 20 kB / 388.3 MB, free: 7.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.867e-05/0.07484, allocations: 47.83 kB / 388.3 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.046e-05/0.07494, allocations: 95.59 kB / 388.4 MB, free: 7.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.07515, allocations: 223.5 kB / 388.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.07516, allocations: 0 / 388.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.07517, allocations: 0 / 388.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.07518, allocations: 3.938 kB / 388.7 MB, free: 6.82 MB / 286.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.0006597/0.07585, allocations: 491.3 kB / 389.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.07589, allocations: 11.89 kB / 389.2 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.559e-05/0.07596, allocations: 58.72 kB / 389.2 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.07601, allocations: 20.75 kB / 389.2 MB, free: 6.191 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.07614, allocations: 184.2 kB / 389.4 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.07616, allocations: 12.81 kB / 389.4 MB, free: 5.961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.0762, allocations: 28.28 kB / 389.4 MB, free: 5.934 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.07652, allocations: 199.4 kB / 389.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.07654, allocations: 0 / 389.6 MB, free: 5.73 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.07657, allocations: 11.98 kB / 389.7 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.07658, allocations: 8 kB / 389.7 MB, free: 5.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.07677, allocations: 117.6 kB / 389.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.07783, allocations: 0.7291 MB / 390.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003634/0.0782, allocations: 259.6 kB / 390.8 MB, free: 4.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.07841, allocations: 112.8 kB / 390.9 MB, free: 4.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.07844, allocations: 4 kB / 390.9 MB, free: 4.406 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.07867, allocations: 127.2 kB / 391 MB, free: 4.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.934e-06/0.07868, allocations: 4 kB / 391 MB, free: 4.266 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009774/0.07966, allocations: 0.6391 MB / 391.6 MB, free: 3.574 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.07971, allocations: 55.41 kB / 391.7 MB, free: 3.508 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.07981, allocations: 129.8 kB / 391.8 MB, free: 3.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.07984, allocations: 33.7 kB / 391.9 MB, free: 3.332 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.467e-05/0.07992, allocations: 136.1 kB / 392 MB, free: 3.191 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.07998, allocations: 82.83 kB / 392.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.624e-05/0.08005, allocations: 53.7 kB / 392.1 MB, free: 3.051 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.08016, allocations: 330.8 kB / 392.4 MB, free: 2.719 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.08027, allocations: 63.97 kB / 392.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.08042, allocations: 135.4 kB / 392.6 MB, free: 2.492 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.08067, allocations: 205 kB / 392.8 MB, free: 2.266 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.08068, allocations: 4 kB / 392.8 MB, free: 2.262 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003325/0.08102, allocations: 255.6 kB / 393.1 MB, free: 2.008 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.08104, allocations: 6.188 kB / 393.1 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.08105, allocations: 4 kB / 393.1 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.08107, allocations: 4 kB / 393.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.08127, allocations: 59.91 kB / 393.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.08129, allocations: 4 kB / 393.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.907e-05/0.08139, allocations: 20.19 kB / 393.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.08141, allocations: 12 kB / 393.2 MB, free: 1.902 MB / 286.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.0001428/0.08156, allocations: 145.7 kB / 393.3 MB, free: 1.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.08159, allocations: 11.81 kB / 393.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.08163, allocations: 16.84 kB / 393.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.08163, allocations: 0 / 393.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.08164, allocations: 0 / 393.4 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.08166, allocations: 11.92 kB / 393.4 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007605/0.08242, allocations: 0.6133 MB / 394 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.08244, allocations: 3.938 kB / 394 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.08263, allocations: 43.92 kB / 394 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.08264, allocations: 4 kB / 394 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.08267, allocations: 8.062 kB / 394.1 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.08268, allocations: 7.984 kB / 394.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.08268, allocations: 0 / 394.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000423/0.08311, allocations: 388.9 kB / 394.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.08316, allocations: 85.02 kB / 394.5 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.0832, allocations: 16.03 kB / 394.5 MB, free: 464 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.0833, allocations: 8 kB / 394.5 MB, free: 456 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.08335, allocations: 15.98 kB / 394.6 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.08338, allocations: 12.02 kB / 394.6 MB, free: 428 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.193e-05/0.08344, allocations: 103.1 kB / 394.7 MB, free: 328 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08345, allocations: 0 / 394.7 MB, free: 328 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.08373, allocations: 48 kB / 394.7 MB, free: 280 kB / 286.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.0006691/0.0844, allocations: 0.9327 MB / 395.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003012/0.08471, allocations: 196 kB / 395.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.08472, allocations: 0 / 395.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.08485, allocations: 92.34 kB / 395.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/0.0851, allocations: 16.12 kB / 396 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.08746, allocations: 2.38 MB / 398.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.08775, allocations: 0.7319 MB / 399.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.345e-05/0.08782, allocations: 13.55 kB / 399.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.811e-05/0.08791, allocations: 63.41 kB / 399.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08792, allocations: 0 / 399.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.107, allocations: 3.178 MB / 402.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.1072, allocations: 248.1 kB / 402.6 MB, free: 8.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/1.797, allocations: 0 / 402.6 MB, free: 8.344 MB / 302.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)