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.001462/0.001462, allocations: 101.4 kB / 15.06 MB, free: 1.094 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.001685/0.001685, allocations: 177.3 kB / 15.95 MB, free: 208 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.558/1.558, allocations: 205.4 MB / 222.1 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03888/0.03888, allocations: 8.097 MB / 278.5 MB, free: 13.25 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.0004975/0.0004975, allocations: 22.95 kB / 338.2 MB, free: 27.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09724/0.09775, allocations: 49.27 MB / 387.5 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002199/0.09999, allocations: 1.557 MB / 389.1 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007544/0.1008, allocations: 0.5429 MB / 389.6 MB, free: 7.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.837e-05/0.1008, allocations: 4 kB / 389.6 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.016e-05/0.1009, allocations: 15.86 kB / 389.6 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.101, allocations: 43.88 kB / 389.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001499/0.1012, allocations: 47.84 kB / 389.7 MB, free: 7.516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000151/0.1013, allocations: 143.8 kB / 389.9 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.1015, allocations: 66.17 kB / 389.9 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.1016, allocations: 67.78 kB / 390 MB, free: 7.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.1018, allocations: 75.67 kB / 390.1 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.361e-05/0.1018, allocations: 12 kB / 390.1 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.867e-05/0.1018, allocations: 12 kB / 390.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.715e-05/0.1019, allocations: 35.91 kB / 390.1 MB, free: 7.113 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.973e-05/0.1019, allocations: 61.52 kB / 390.2 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.1021, allocations: 167.8 kB / 390.3 MB, free: 6.883 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1021, allocations: 4 kB / 390.3 MB, free: 6.879 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1021, allocations: 0 / 390.3 MB, free: 6.879 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1021, allocations: 0 / 390.3 MB, free: 6.879 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.0006548/0.1028, allocations: 451.2 kB / 390.8 MB, free: 6.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.1028, allocations: 12.03 kB / 390.8 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.839e-05/0.1029, allocations: 19.81 kB / 390.8 MB, free: 6.355 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.103, allocations: 194.7 kB / 391 MB, free: 6.125 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.103, allocations: 16.44 kB / 391 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.1031, allocations: 19.98 kB / 391 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.1034, allocations: 191.2 kB / 391.2 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.1034, allocations: 3.984 kB / 391.2 MB, free: 5.891 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1034, allocations: 8 kB / 391.2 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.1035, allocations: 11.94 kB / 391.3 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.1037, allocations: 113.7 kB / 391.4 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1047, allocations: 0.7369 MB / 392.1 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.1051, allocations: 255.6 kB / 392.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.1051, allocations: 0 / 392.4 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/0.1053, allocations: 129.2 kB / 392.5 MB, free: 4.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.1053, allocations: 0 / 392.5 MB, free: 4.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001027/0.1064, allocations: 0.6478 MB / 393.1 MB, free: 3.848 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.1064, allocations: 55.41 kB / 393.2 MB, free: 3.781 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.164e-05/0.1065, allocations: 141.5 kB / 393.3 MB, free: 3.637 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.1065, allocations: 29.7 kB / 393.3 MB, free: 3.602 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.167e-05/0.1066, allocations: 132.2 kB / 393.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.299e-05/0.1067, allocations: 82.89 kB / 393.6 MB, free: 3.383 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.1067, allocations: 8 kB / 393.6 MB, free: 3.375 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.1068, allocations: 326.8 kB / 393.9 MB, free: 3.047 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.562e-05/0.1069, allocations: 63.97 kB / 393.9 MB, free: 2.984 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.1071, allocations: 135.4 kB / 394.1 MB, free: 2.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000129/0.1072, allocations: 85.14 kB / 394.2 MB, free: 2.738 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1072, allocations: 0 / 394.2 MB, free: 2.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003319/0.1075, allocations: 251.8 kB / 394.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1076, allocations: 12.2 kB / 394.4 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.1076, allocations: 7.984 kB / 394.4 MB, free: 2.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1076, allocations: 4 kB / 394.4 MB, free: 2.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002206/0.1078, allocations: 59.91 kB / 394.5 MB, free: 2.406 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1078, allocations: 7.938 kB / 394.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.582e-05/0.1079, allocations: 15.98 kB / 394.5 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.108, allocations: 8 kB / 394.5 MB, free: 2.375 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.0001619/0.1081, allocations: 149.6 kB / 394.7 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.1082, allocations: 19.81 kB / 394.7 MB, free: 2.199 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.1082, allocations: 20.8 kB / 394.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1082, allocations: 4 kB / 394.7 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1082, allocations: 3.984 kB / 394.7 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1082, allocations: 0 / 394.7 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007288/0.109, allocations: 0.6221 MB / 395.3 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.109, allocations: 4 kB / 395.3 MB, free: 1.488 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.1092, allocations: 39.97 kB / 395.4 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1092, allocations: 0 / 395.4 MB, free: 1.449 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1092, allocations: 12 kB / 395.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1093, allocations: 0 / 395.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1093, allocations: 4 kB / 395.4 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.1097, allocations: 424.2 kB / 395.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.1098, allocations: 85.02 kB / 395.9 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.1098, allocations: 8 kB / 395.9 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.11, allocations: 8.031 kB / 395.9 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.929e-05/0.11, allocations: 19.94 kB / 395.9 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.11, allocations: 8 kB / 395.9 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.932e-05/0.1101, allocations: 99.27 kB / 396 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1101, allocations: 0 / 396 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.1104, allocations: 48 kB / 396.1 MB, free: 0.6953 MB / 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.000112/0.1105, allocations: 117.5 kB / 396.2 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000305/0.1108, allocations: 180.4 kB / 396.4 MB, free: 404 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1109, allocations: 0.5 kB / 396.4 MB, free: 404 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.111, allocations: 99.78 kB / 396.5 MB, free: 304 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.1112, allocations: 11.86 kB / 396.5 MB, free: 292 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.1122, allocations: 0.7246 MB / 397.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.1125, allocations: 0.7325 MB / 397.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.303e-05/0.1125, allocations: 17.55 kB / 398 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.1126, allocations: 35.3 kB / 398 MB, free: 14.72 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1126, allocations: 0 / 398 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Templates: time 0.003745/0.1163, allocations: 1.298 MB / 399.3 MB, free: 13.44 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: