Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",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.00815/0.00815, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001763/0.001763, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.395/1.395, 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.04306/0.04306, allocations: 8.112 MB / 278 MB, free: 13.06 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.001598/0.001598, allocations: 67.91 kB / 386.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2484, allocations: 48.31 MB / 434.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003212/0.2517, allocations: 2.408 MB / 436.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.253, allocations: 0.6811 MB / 437.6 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.2532, allocations: 7.531 kB / 437.6 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.2534, allocations: 35.17 kB / 437.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001745/0.2536, allocations: 77.95 kB / 437.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.2539, allocations: 70.8 kB / 437.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.2542, allocations: 298.3 kB / 438 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2544, allocations: 99.94 kB / 438.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.2546, allocations: 124.8 kB / 438.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.2548, allocations: 127.3 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.583e-05/0.2548, allocations: 23.31 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.253e-05/0.2549, allocations: 24.38 kB / 438.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.2549, allocations: 49.23 kB / 438.5 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.2551, allocations: 131.1 kB / 438.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.2554, allocations: 282.3 kB / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2554, allocations: 0 / 438.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2554, allocations: 4 kB / 438.9 MB, free: 4.613 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.2555, allocations: 0 / 438.9 MB, free: 4.613 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009197/0.2564, allocations: 0.586 MB / 439.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2564, allocations: 9.531 kB / 439.5 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.417e-05/0.2565, allocations: 59.48 kB / 439.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.2566, allocations: 27.16 kB / 439.6 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.2568, allocations: 257.1 kB / 439.8 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.2569, allocations: 14.72 kB / 439.8 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.93e-05/0.2569, allocations: 25.47 kB / 439.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.2574, allocations: 224.2 kB / 440.1 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.2575, allocations: 6.016 kB / 440.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.2575, allocations: 11.22 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2575, allocations: 5 kB / 440.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005948/0.2581, allocations: 198 kB / 440.3 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009993/0.2591, allocations: 0.662 MB / 441 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.2598, allocations: 260.9 kB / 441.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003287/0.2602, allocations: 120.5 kB / 441.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.2602, allocations: 2.969 kB / 441.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004512/0.2606, allocations: 173.1 kB / 441.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.054e-06/0.2607, allocations: 0 / 441.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002676/0.2633, allocations: 1.199 MB / 442.7 MB, free: 2.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.326e-05/0.2634, allocations: 56.7 kB / 442.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001518/0.2636, allocations: 179.5 kB / 442.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.2636, allocations: 37.62 kB / 443 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.389e-05/0.2637, allocations: 147.1 kB / 443.1 MB, free: 1.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.406e-05/0.2637, allocations: 107.1 kB / 443.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.453e-05/0.2638, allocations: 57.45 kB / 443.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.174e-05/0.2639, allocations: 334.1 kB / 443.6 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.2642, allocations: 101.2 kB / 443.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000302/0.2645, allocations: 136.9 kB / 443.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.2658, allocations: 0.5533 MB / 444.4 MB, free: 1.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2658, allocations: 1.625 kB / 444.4 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007358/0.2666, allocations: 357.4 kB / 444.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.2666, allocations: 36.5 kB / 444.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2666, allocations: 5.359 kB / 444.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.2667, allocations: 9.984 kB / 444.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003041/0.267, allocations: 76.83 kB / 444.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.267, allocations: 2.125 kB / 444.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.2672, allocations: 23.84 kB / 444.9 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.2672, allocations: 13.47 kB / 444.9 MB, free: 0.8242 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * 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.0001832/0.2674, allocations: 159.8 kB / 445.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.2675, allocations: 26.8 kB / 445.1 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.2675, allocations: 33.09 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2675, allocations: 4.094 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2676, allocations: 0 / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2676, allocations: 1.922 kB / 445.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.2687, allocations: 0.788 MB / 445.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.2687, allocations: 0 / 445.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003227/0.2691, allocations: 72.83 kB / 446 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.2691, allocations: 2.562 kB / 446 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.2691, allocations: 15.03 kB / 446 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2691, allocations: 2.688 kB / 446 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2691, allocations: 1.5 kB / 446 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.2702, allocations: 0.5278 MB / 446.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.867e-05/0.2703, allocations: 96.14 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.2703, allocations: 7.5 kB / 446.6 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.2706, allocations: 24.72 kB / 446.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.446e-05/0.2707, allocations: 32.92 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.2707, allocations: 10.92 kB / 446.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001064/0.2708, allocations: 136 kB / 446.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2708, allocations: 0 / 446.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.2711, allocations: 62.81 kB / 446.9 MB, free: 15.59 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001339/0.2725, allocations: 1.082 MB / 448 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007523/0.2732, allocations: 325.8 kB / 448.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2732, allocations: 0 / 448.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003622/0.2736, allocations: 140.6 kB / 448.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.2741, allocations: 55.48 kB / 448.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005494/0.2796, allocations: 3.014 MB / 451.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.2799, allocations: 0.761 MB / 452.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.28, allocations: 24.39 kB / 452.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.2802, allocations: 77.59 kB / 452.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2802, allocations: 0 / 452.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.3029, allocations: 5.411 MB / 457.8 MB, free: 8.934 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.163/8.465, allocations: 2.094 kB / 457.8 MB, free: 8.934 MB / 334.1 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)