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.0008708/0.000871, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.0008881/0.0008883, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 222.1 MB, free: 5.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03896/0.03896, allocations: 8.117 MB / 278.5 MB, free: 13.3 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.0004999/0.0004999, allocations: 14.97 kB / 338.4 MB, free: 26.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08675/0.08726, allocations: 49.27 MB / 387.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.001919/0.08923, allocations: 1.623 MB / 389.3 MB, free: 7.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008189/0.09006, allocations: 0.5388 MB / 389.8 MB, free: 7.414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.065e-05/0.09014, allocations: 4 kB / 389.8 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.28e-05/0.09019, allocations: 15.84 kB / 389.8 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001349/0.09033, allocations: 35.7 kB / 389.9 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.0905, allocations: 39.94 kB / 389.9 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.09071, allocations: 199.2 kB / 390.1 MB, free: 7.125 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.09089, allocations: 70.17 kB / 390.2 MB, free: 7.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.09105, allocations: 63.78 kB / 390.2 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.09117, allocations: 83.61 kB / 390.3 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.09121, allocations: 12 kB / 390.3 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.862e-05/0.09124, allocations: 12 kB / 390.3 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.09128, allocations: 31.91 kB / 390.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.113e-05/0.09135, allocations: 57.64 kB / 390.4 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.09152, allocations: 175.7 kB / 390.6 MB, free: 6.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.09154, allocations: 4 kB / 390.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.09154, allocations: 0 / 390.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.09156, allocations: 0 / 390.6 MB, free: 6.621 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.0006512/0.09221, allocations: 463.1 kB / 391 MB, free: 6.117 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.09228, allocations: 12.02 kB / 391.1 MB, free: 6.105 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.09235, allocations: 58.55 kB / 391.1 MB, free: 6.039 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.0924, allocations: 19.72 kB / 391.1 MB, free: 6.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.09256, allocations: 182.8 kB / 391.3 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.09259, allocations: 12.44 kB / 391.3 MB, free: 5.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.09265, allocations: 27.98 kB / 391.4 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.09298, allocations: 187.3 kB / 391.5 MB, free: 5.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.09301, allocations: 4 kB / 391.5 MB, free: 5.566 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.09303, allocations: 8 kB / 391.5 MB, free: 5.559 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.964e-06/0.09304, allocations: 4 kB / 391.6 MB, free: 5.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.09325, allocations: 121.6 kB / 391.7 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.09434, allocations: 0.7407 MB / 392.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.09473, allocations: 259.6 kB / 392.7 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.09494, allocations: 112.6 kB / 392.8 MB, free: 4.242 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.689e-05/0.09497, allocations: 8.344 kB / 392.8 MB, free: 4.234 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002387/0.09521, allocations: 124.7 kB / 392.9 MB, free: 4.102 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.09523, allocations: 0 / 392.9 MB, free: 4.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001035/0.09626, allocations: 0.6322 MB / 393.5 MB, free: 3.418 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.09632, allocations: 55.41 kB / 393.6 MB, free: 3.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.09644, allocations: 133.7 kB / 393.7 MB, free: 3.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.09647, allocations: 33.7 kB / 393.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.312e-05/0.09655, allocations: 136.2 kB / 393.9 MB, free: 3.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.521e-05/0.09662, allocations: 74.91 kB / 394 MB, free: 2.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.09663, allocations: 8 kB / 394 MB, free: 2.949 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.09675, allocations: 326.8 kB / 394.3 MB, free: 2.621 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-05/0.09685, allocations: 55.97 kB / 394.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.09701, allocations: 135.4 kB / 394.5 MB, free: 2.402 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.09716, allocations: 85.08 kB / 394.6 MB, free: 2.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.09717, allocations: 7.938 kB / 394.6 MB, free: 2.312 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003644/0.09753, allocations: 251.8 kB / 394.8 MB, free: 2.062 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.09756, allocations: 4 kB / 394.8 MB, free: 2.059 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.09757, allocations: 4 kB / 394.8 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.09759, allocations: 4 kB / 394.8 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002086/0.09781, allocations: 63.91 kB / 394.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.09783, allocations: 4.25 kB / 394.9 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.621e-05/0.09792, allocations: 12 kB / 394.9 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.09794, allocations: 11.98 kB / 394.9 MB, free: 1.961 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 ($PRE.intervalMeasure.last_time,intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,$whenCondition2,$whenCondition1,$PRE.intervalMeasure.next_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.prev_phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001588/0.09811, allocations: 154.7 kB / 395.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.09814, allocations: 19.77 kB / 395.1 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.314e-05/0.09819, allocations: 16.84 kB / 395.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.0982, allocations: 4 kB / 395.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.0982, allocations: 0 / 395.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.09822, allocations: 3.984 kB / 395.1 MB, free: 1.762 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007609/0.09898, allocations: 0.6338 MB / 395.7 MB, free: 1.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.099, allocations: 4 kB / 395.7 MB, free: 1.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.09919, allocations: 40.05 kB / 395.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.0992, allocations: 4 kB / 395.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.09922, allocations: 4 kB / 395.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.09924, allocations: 7.984 kB / 395.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.09924, allocations: 0 / 395.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004586/0.09971, allocations: 388.8 kB / 396.2 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.712e-05/0.09978, allocations: 92.92 kB / 396.3 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.033e-05/0.09981, allocations: 8.031 kB / 396.3 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.09991, allocations: 4 kB / 396.3 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.586e-05/0.09998, allocations: 15.98 kB / 396.3 MB, free: 480 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.1, allocations: 11.98 kB / 396.3 MB, free: 468 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.1001, allocations: 103.2 kB / 396.4 MB, free: 364 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1001, allocations: 0 / 396.4 MB, free: 364 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1004, allocations: 48 kB / 396.5 MB, free: 316 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 (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.0008137/0.1012, allocations: 0.927 MB / 397.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.1015, allocations: 180.2 kB / 397.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1016, allocations: 0 / 397.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001345/0.1017, allocations: 83.92 kB / 397.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.102, allocations: 19.89 kB / 397.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.1039, allocations: 1.338 MB / 399 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003407/0.1042, allocations: 0.7325 MB / 399.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.723e-05/0.1043, allocations: 13.55 kB / 399.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.359e-05/0.1044, allocations: 63.34 kB / 399.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1044, allocations: 0 / 399.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0132/0.1176, allocations: 2.991 MB / 402.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/0.1178, allocations: 222.1 kB / 403 MB, free: 9.738 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.757/1.875, allocations: 0 / 403 MB, free: 9.738 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/linux/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) Environment - environmentSimulation: