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.001335/0.001335, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00175/0.001749, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.513/1.513, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04292/0.04292, allocations: 8.106 MB / 277.9 MB, free: 13.19 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.001517/0.001517, allocations: 72.36 kB / 337.3 MB, free: 26.44 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09733, allocations: 48.29 MB / 385.6 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003558/0.1009, allocations: 1.962 MB / 387.6 MB, free: 8.117 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009395/0.1019, allocations: 0.5736 MB / 388.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.047e-05/0.102, allocations: 4 kB / 388.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.965e-05/0.1021, allocations: 27.72 kB / 388.2 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.1022, allocations: 39.62 kB / 388.2 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.1024, allocations: 59.88 kB / 388.3 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000226/0.1027, allocations: 215.2 kB / 388.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.1029, allocations: 94.17 kB / 388.6 MB, free: 7.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.103, allocations: 79.77 kB / 388.6 MB, free: 7.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.1032, allocations: 91.61 kB / 388.7 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.1032, allocations: 24 kB / 388.8 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.525e-05/0.1033, allocations: 20 kB / 388.8 MB, free: 6.895 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.629e-05/0.1033, allocations: 47.83 kB / 388.8 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001061/0.1034, allocations: 103.5 kB / 388.9 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.1036, allocations: 219.5 kB / 389.1 MB, free: 6.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1037, allocations: 4 kB / 389.1 MB, free: 6.527 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1037, allocations: 0 / 389.1 MB, free: 6.527 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.1037, allocations: 0 / 389.1 MB, free: 6.527 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.0007334/0.1044, allocations: 491.3 kB / 389.6 MB, free: 5.996 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1045, allocations: 11.89 kB / 389.6 MB, free: 5.984 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.1045, allocations: 58.67 kB / 389.7 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.03e-05/0.1046, allocations: 24.73 kB / 389.7 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.1047, allocations: 184.2 kB / 389.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1048, allocations: 16.81 kB / 389.9 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.1048, allocations: 24.28 kB / 389.9 MB, free: 5.637 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.1051, allocations: 195.4 kB / 390.1 MB, free: 5.438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.1052, allocations: 7.984 kB / 390.1 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.1052, allocations: 4 kB / 390.1 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1052, allocations: 7.938 kB / 390.1 MB, free: 5.418 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.1054, allocations: 117.7 kB / 390.3 MB, free: 5.305 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.1067, allocations: 0.733 MB / 391 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004415/0.1071, allocations: 259.6 kB / 391.2 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.1074, allocations: 108.6 kB / 391.3 MB, free: 4.121 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.1074, allocations: 4 kB / 391.4 MB, free: 4.117 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003322/0.1077, allocations: 131.2 kB / 391.5 MB, free: 3.977 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.345e-06/0.1078, allocations: 0 / 391.5 MB, free: 3.977 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001281/0.109, allocations: 0.634 MB / 392.1 MB, free: 3.289 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.992e-05/0.1091, allocations: 59.41 kB / 392.2 MB, free: 3.219 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.1092, allocations: 125.8 kB / 392.3 MB, free: 3.086 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.1093, allocations: 33.7 kB / 392.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1094, allocations: 136 kB / 392.5 MB, free: 2.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.135e-05/0.1095, allocations: 86.83 kB / 392.5 MB, free: 2.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.564e-05/0.1096, allocations: 53.7 kB / 392.6 MB, free: 2.762 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1097, allocations: 334.8 kB / 392.9 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1098, allocations: 55.98 kB / 393 MB, free: 2.371 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.11, allocations: 143.4 kB / 393.1 MB, free: 2.199 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.1103, allocations: 210.2 kB / 393.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1103, allocations: 0 / 393.3 MB, free: 1.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003758/0.1107, allocations: 255.6 kB / 393.6 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.1107, allocations: 6.5 kB / 393.6 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1108, allocations: 4.25 kB / 393.6 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1108, allocations: 8 kB / 393.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.111, allocations: 55.91 kB / 393.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.111, allocations: 4 kB / 393.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.269e-05/0.1111, allocations: 15.94 kB / 393.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.1111, allocations: 12 kB / 393.7 MB, free: 1.613 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.0001943/0.1113, allocations: 145.7 kB / 393.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.1114, allocations: 15.81 kB / 393.8 MB, free: 1.445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.654e-05/0.1114, allocations: 24.78 kB / 393.9 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1114, allocations: 4 kB / 393.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1115, allocations: 0 / 393.9 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.1115, allocations: 7.938 kB / 393.9 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007867/0.1123, allocations: 0.6144 MB / 394.5 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.1123, allocations: 11.98 kB / 394.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.1125, allocations: 39.92 kB / 394.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.1125, allocations: 4 kB / 394.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.1125, allocations: 4 kB / 394.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.1125, allocations: 4 kB / 394.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1125, allocations: 0 / 394.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000476/0.113, allocations: 392.7 kB / 394.9 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.1131, allocations: 85.02 kB / 395 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.1131, allocations: 8 kB / 395 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.1132, allocations: 8.031 kB / 395 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.1133, allocations: 15.98 kB / 395 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.1133, allocations: 8 kB / 395.1 MB, free: 132 kB / 286.1 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.1133, allocations: 95.27 kB / 395.1 MB, free: 36 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1134, allocations: 3.938 kB / 395.2 MB, free: 32 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.1137, allocations: 55.98 kB / 395.2 MB, free: 15.98 MB / 302.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.0007736/0.1144, allocations: 0.929 MB / 396.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003545/0.1148, allocations: 195.9 kB / 396.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1148, allocations: 0 / 396.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.115, allocations: 87.86 kB / 396.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.1152, allocations: 11.98 kB / 396.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002618/0.1179, allocations: 2.303 MB / 398.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1182, allocations: 0.7319 MB / 399.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.006e-05/0.1182, allocations: 13.55 kB / 399.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.721e-05/0.1183, allocations: 59.36 kB / 399.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1183, allocations: 4 kB / 399.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0207/0.1391, allocations: 3.286 MB / 402.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.581/7.72, allocations: 16.88 kB / 402.8 MB, free: 8.23 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)