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.001103/0.001103, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001198/0.001198, allocations: 177.3 kB / 15.95 MB, free: 216 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.537/1.537, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03816/0.03816, allocations: 8.101 MB / 278.5 MB, free: 13.22 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.0005911/0.0005912, allocations: 15.12 kB / 338.3 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09577, allocations: 49.27 MB / 387.6 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002133/0.09795, allocations: 1.557 MB / 389.2 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008281/0.09879, allocations: 0.5468 MB / 389.7 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.362e-05/0.09886, allocations: 0 / 389.7 MB, free: 7.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.57e-05/0.09892, allocations: 19.84 kB / 389.7 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.09905, allocations: 47.89 kB / 389.8 MB, free: 7.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001602/0.09922, allocations: 43.89 kB / 389.8 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.09939, allocations: 139.8 kB / 390 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.09956, allocations: 70.12 kB / 390 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.09971, allocations: 63.84 kB / 390.1 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.09983, allocations: 75.67 kB / 390.2 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/0.09987, allocations: 15.94 kB / 390.2 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.805e-05/0.0999, allocations: 12 kB / 390.2 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.395e-05/0.09994, allocations: 35.91 kB / 390.2 MB, free: 7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.834e-05/0.09999, allocations: 57.64 kB / 390.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.1002, allocations: 167.8 kB / 390.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1002, allocations: 0 / 390.4 MB, free: 6.773 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1002, allocations: 3.938 kB / 390.4 MB, free: 6.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1002, allocations: 0 / 390.4 MB, free: 6.77 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.0005942/0.1008, allocations: 459.2 kB / 390.9 MB, free: 6.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.1008, allocations: 8.031 kB / 390.9 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.722e-05/0.1009, allocations: 58.48 kB / 391 MB, free: 6.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.101, allocations: 19.72 kB / 391 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1011, allocations: 186.8 kB / 391.2 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.1011, allocations: 16.44 kB / 391.2 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.1012, allocations: 20 kB / 391.2 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.1015, allocations: 187.3 kB / 391.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.1015, allocations: 0 / 391.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.1015, allocations: 16 kB / 391.4 MB, free: 5.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1015, allocations: 4 kB / 391.4 MB, free: 5.707 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.1017, allocations: 117.6 kB / 391.5 MB, free: 5.594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.1028, allocations: 0.7446 MB / 392.3 MB, free: 4.785 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/0.1032, allocations: 259.1 kB / 392.5 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.108e-05/0.1032, allocations: 0 / 392.5 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002305/0.1034, allocations: 137 kB / 392.6 MB, free: 4.363 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.1034, allocations: 0 / 392.6 MB, free: 4.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00103/0.1045, allocations: 0.6478 MB / 393.3 MB, free: 3.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.1045, allocations: 55.41 kB / 393.3 MB, free: 3.598 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.1047, allocations: 129.7 kB / 393.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.1047, allocations: 33.7 kB / 393.5 MB, free: 3.422 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.081e-05/0.1048, allocations: 136.2 kB / 393.6 MB, free: 3.281 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.758e-05/0.1048, allocations: 74.91 kB / 393.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.1049, allocations: 8 kB / 393.7 MB, free: 3.199 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.105, allocations: 322.8 kB / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.1051, allocations: 59.98 kB / 394.1 MB, free: 2.816 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.1053, allocations: 139.4 kB / 394.2 MB, free: 2.648 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.1054, allocations: 85.09 kB / 394.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1054, allocations: 0 / 394.3 MB, free: 2.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003476/0.1058, allocations: 259.8 kB / 394.6 MB, free: 2.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1058, allocations: 8 kB / 394.6 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1058, allocations: 0 / 394.6 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1058, allocations: 4 kB / 394.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.106, allocations: 63.91 kB / 394.6 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.1061, allocations: 8.062 kB / 394.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.091e-05/0.1062, allocations: 12 kB / 394.7 MB, free: 2.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.1062, allocations: 12.25 kB / 394.7 MB, free: 2.203 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.0001837/0.1064, allocations: 153.6 kB / 394.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/0.1064, allocations: 19.77 kB / 394.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.427e-05/0.1065, allocations: 16.84 kB / 394.9 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1065, allocations: 7.938 kB / 394.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1065, allocations: 0 / 394.9 MB, free: 2.004 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1065, allocations: 3.984 kB / 394.9 MB, free: 2 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007959/0.1073, allocations: 0.6183 MB / 395.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1073, allocations: 0 / 395.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.1075, allocations: 43.86 kB / 395.5 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1075, allocations: 4 kB / 395.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.1075, allocations: 7.984 kB / 395.5 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.1076, allocations: 4 kB / 395.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1076, allocations: 4.062 kB / 395.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004821/0.1081, allocations: 420.2 kB / 396 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.1081, allocations: 89.05 kB / 396 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.967e-05/0.1082, allocations: 8 kB / 396.1 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1083, allocations: 12 kB / 396.1 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.971e-05/0.1083, allocations: 19.92 kB / 396.1 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.1084, allocations: 12 kB / 396.1 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.901e-05/0.1084, allocations: 93.02 kB / 396.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1085, allocations: 0 / 396.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000293/0.1088, allocations: 48 kB / 396.2 MB, free: 0.5195 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.0007954/0.1096, allocations: 1.1 MB / 397.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002871/0.1099, allocations: 184.1 kB / 397.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1099, allocations: 4.125 kB / 397.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.11, allocations: 91.91 kB / 397.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.1102, allocations: 4 kB / 397.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.1125, allocations: 2.554 MB / 400.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1129, allocations: 0.7325 MB / 400.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.014e-05/0.1129, allocations: 21.48 kB / 400.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.697e-05/0.113, allocations: 59.36 kB / 401 MB, free: 11.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.113, allocations: 0 / 401 MB, free: 11.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.131, allocations: 2.911 MB / 403.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002843/0.1313, allocations: 216.2 kB / 404.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/1.965, allocations: 0 / 404.1 MB, free: 8.609 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: