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.006951/0.006951, allocations: 99.86 kB / 15.73 MB, free: 6.004 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.001783/0.001783, allocations: 191 kB / 16.67 MB, free: 5.934 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.477/1.477, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04203/0.04203, allocations: 8.109 MB / 278 MB, free: 13.07 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.001821/0.001821, allocations: 70.39 kB / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3034, allocations: 48.29 MB / 434.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003186/0.3066, allocations: 1.961 MB / 436.5 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009401/0.3076, allocations: 0.5629 MB / 437 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.474e-05/0.3077, allocations: 3.25 kB / 437 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.57e-05/0.3078, allocations: 29 kB / 437.1 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.308, allocations: 50.89 kB / 437.1 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.3082, allocations: 51.72 kB / 437.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.3084, allocations: 212.3 kB / 437.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.3087, allocations: 99.45 kB / 437.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001991/0.3089, allocations: 80 kB / 437.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.309, allocations: 90.45 kB / 437.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.3091, allocations: 20.62 kB / 437.6 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.581e-05/0.3091, allocations: 20.62 kB / 437.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.3092, allocations: 55.17 kB / 437.7 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.3093, allocations: 97.38 kB / 437.8 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.3096, allocations: 226.1 kB / 438 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3096, allocations: 0.9688 kB / 438 MB, free: 5.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3096, allocations: 0 / 438 MB, free: 5.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3096, allocations: 0 / 438 MB, free: 5.188 MB / 318.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.0007187/0.3104, allocations: 489.5 kB / 438.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.3104, allocations: 18.27 kB / 438.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.343e-05/0.3105, allocations: 54.52 kB / 438.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.3105, allocations: 18.56 kB / 438.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.3106, allocations: 187.2 kB / 438.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.3107, allocations: 14.14 kB / 438.8 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.556e-05/0.3107, allocations: 22.94 kB / 438.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003253/0.3111, allocations: 197 kB / 439 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.3111, allocations: 0 / 439 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.264e-05/0.3111, allocations: 11.11 kB / 439 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.3111, allocations: 9.453 kB / 439 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.3113, allocations: 119 kB / 439.2 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.3125, allocations: 0.7194 MB / 439.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.3129, allocations: 268.9 kB / 440.1 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/0.3132, allocations: 115.7 kB / 440.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.3132, allocations: 1.656 kB / 440.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.3135, allocations: 124.3 kB / 440.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.3135, allocations: 3.938 kB / 440.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001177/0.3147, allocations: 0.6545 MB / 441 MB, free: 3.047 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.3147, allocations: 71.91 kB / 441.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.564e-05/0.3148, allocations: 127.7 kB / 441.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3149, allocations: 31.48 kB / 441.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.173e-05/0.3149, allocations: 136.9 kB / 441.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/0.315, allocations: 83.28 kB / 441.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.05e-05/0.3151, allocations: 57.92 kB / 441.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.322e-05/0.3151, allocations: 333.8 kB / 441.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.3153, allocations: 58.34 kB / 441.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.3154, allocations: 130.4 kB / 442 MB, free: 2.148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.3157, allocations: 212.3 kB / 442.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3157, allocations: 0.8125 kB / 442.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004491/0.3162, allocations: 257.1 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.3162, allocations: 5.906 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3162, allocations: 2.031 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.133e-05/0.3163, allocations: 3.781 kB / 442.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.3165, allocations: 61.06 kB / 442.6 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.3165, allocations: 7.828 kB / 442.6 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.187e-05/0.3166, allocations: 20.02 kB / 442.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.3166, allocations: 9.875 kB / 442.6 MB, free: 1.852 MB / 318.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.0001442/0.3168, allocations: 145.4 kB / 442.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.3168, allocations: 10.83 kB / 442.8 MB, free: 1.707 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.261e-05/0.3168, allocations: 19.72 kB / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.3169, allocations: 2.75 kB / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3169, allocations: 0 / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.3169, allocations: 8.781 kB / 442.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007483/0.3176, allocations: 0.628 MB / 443.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3176, allocations: 0 / 443.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.3179, allocations: 43.16 kB / 443.5 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.3179, allocations: 6.25 kB / 443.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.3179, allocations: 7.766 kB / 443.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3179, allocations: 6.234 kB / 443.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3179, allocations: 0 / 443.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004469/0.3184, allocations: 384.8 kB / 443.9 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.3184, allocations: 89.86 kB / 443.9 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.3184, allocations: 7.703 kB / 443.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3186, allocations: 7.984 kB / 444 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.3186, allocations: 24.58 kB / 444 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.3186, allocations: 16.66 kB / 444 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.682e-05/0.3187, allocations: 103 kB / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3187, allocations: 0 / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.319, allocations: 43.5 kB / 444.1 MB, free: 0.7578 MB / 318.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.0006678/0.3197, allocations: 0.9346 MB / 445.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000371/0.3201, allocations: 177.4 kB / 445.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3201, allocations: 0 / 445.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.3203, allocations: 91.25 kB / 445.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.3205, allocations: 17.28 kB / 445.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00266/0.3232, allocations: 2.302 MB / 447.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.3236, allocations: 0.7251 MB / 448.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.3236, allocations: 20.91 kB / 448.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.3238, allocations: 59.61 kB / 448.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3238, allocations: 0 / 448.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.3467, allocations: 3.369 MB / 451.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.985/8.331, allocations: 8.125 kB / 451.8 MB, free: 12.21 MB / 334.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)