Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",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.006906/0.006906, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001292/0.001292, allocations: 197 kB / 16.67 MB, free: 5.973 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.417/1.417, allocations: 205.1 MB / 222.6 MB, free: 4.406 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04314/0.04314, allocations: 8.13 MB / 278 MB, free: 12.93 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.00168/0.00168, allocations: 75.89 kB / 386.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2769, allocations: 48.29 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003432/0.2803, allocations: 2.4 MB / 436.9 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2814, allocations: 0.6376 MB / 437.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.2816, allocations: 3.938 kB / 437.5 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.2817, allocations: 35.5 kB / 437.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.2819, allocations: 73.69 kB / 437.6 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.2821, allocations: 69.23 kB / 437.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003336/0.2825, allocations: 299.3 kB / 438 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.2827, allocations: 95.11 kB / 438.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001506/0.2828, allocations: 116.2 kB / 438.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.283, allocations: 123.2 kB / 438.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.398e-05/0.283, allocations: 22 kB / 438.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.093e-05/0.2831, allocations: 23.38 kB / 438.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.509e-05/0.2832, allocations: 60.73 kB / 438.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.2833, allocations: 126.8 kB / 438.5 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003832/0.2837, allocations: 273.8 kB / 438.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.2837, allocations: 1.031 kB / 438.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2837, allocations: 0 / 438.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.2837, allocations: 0 / 438.8 MB, free: 4.664 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.0009648/0.2847, allocations: 0.5865 MB / 439.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2847, allocations: 10.77 kB / 439.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.359e-05/0.2848, allocations: 58.23 kB / 439.5 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/0.2849, allocations: 31.83 kB / 439.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.2852, allocations: 241.2 kB / 439.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2852, allocations: 17.62 kB / 439.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.359e-05/0.2853, allocations: 21.25 kB / 439.8 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.2858, allocations: 222.8 kB / 440 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.154e-05/0.2858, allocations: 10.08 kB / 440 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/0.2858, allocations: 14.56 kB / 440 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2859, allocations: 5.375 kB / 440 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005964/0.2865, allocations: 194.5 kB / 440.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.2875, allocations: 0.7162 MB / 440.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007277/0.2882, allocations: 248.8 kB / 441.2 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.2885, allocations: 115.1 kB / 441.3 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.2886, allocations: 6.719 kB / 441.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004424/0.289, allocations: 161.8 kB / 441.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.853e-06/0.289, allocations: 0.5625 kB / 441.4 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002489/0.2915, allocations: 1.131 MB / 442.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.2916, allocations: 59.98 kB / 442.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.2917, allocations: 183.2 kB / 442.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2918, allocations: 31.08 kB / 442.8 MB, free: 2.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.31e-05/0.2918, allocations: 142.1 kB / 443 MB, free: 1.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.852e-05/0.2919, allocations: 104.2 kB / 443.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.097e-05/0.292, allocations: 52.14 kB / 443.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.292, allocations: 331.2 kB / 443.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.2923, allocations: 91.69 kB / 443.5 MB, free: 1.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.2926, allocations: 128.6 kB / 443.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001461/0.2941, allocations: 0.5085 MB / 444.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2941, allocations: 0 / 444.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007073/0.2948, allocations: 333 kB / 444.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.189e-05/0.2949, allocations: 37.88 kB / 444.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2949, allocations: 0 / 444.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2949, allocations: 2.547 kB / 444.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.2952, allocations: 75.95 kB / 444.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.2952, allocations: 2.75 kB / 444.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.2955, allocations: 23.8 kB / 444.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.2955, allocations: 10.81 kB / 444.6 MB, free: 0.918 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002152/0.2957, allocations: 162.4 kB / 444.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.2958, allocations: 25.42 kB / 444.8 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.607e-05/0.2958, allocations: 29.31 kB / 444.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.2958, allocations: 2.75 kB / 444.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.2958, allocations: 0 / 444.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.2959, allocations: 3.391 kB / 444.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.297, allocations: 0.7123 MB / 445.6 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.297, allocations: 0 / 445.6 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.2973, allocations: 75.19 kB / 445.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.2974, allocations: 1.719 kB / 445.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.2974, allocations: 7.203 kB / 445.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.2974, allocations: 2.625 kB / 445.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2974, allocations: 0.6094 kB / 445.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009883/0.2984, allocations: 0.5065 MB / 446.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.912e-05/0.2985, allocations: 95.67 kB / 446.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.072e-05/0.2985, allocations: 7.516 kB / 446.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.2988, allocations: 26.45 kB / 446.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.772e-05/0.2989, allocations: 39.89 kB / 446.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.2989, allocations: 8.25 kB / 446.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.299, allocations: 134.9 kB / 446.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.299, allocations: 0 / 446.5 MB, free: 15.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.2993, allocations: 60.72 kB / 446.5 MB, free: 15.73 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: 3 ($whenCondition1,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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001404/0.3007, allocations: 1.035 MB / 447.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007621/0.3015, allocations: 306.6 kB / 447.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3015, allocations: 0 / 447.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.3019, allocations: 133.6 kB / 448 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004752/0.3024, allocations: 68 kB / 448.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/0.308, allocations: 2.916 MB / 451 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.3083, allocations: 0.7454 MB / 451.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001336/0.3085, allocations: 23.7 kB / 451.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3086, allocations: 76.78 kB / 451.8 MB, free: 12 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3086, allocations: 1.344 kB / 451.8 MB, free: 12 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02355/0.3322, allocations: 5.202 MB / 457 MB, free: 9.309 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.487, allocations: 13.17 kB / 457 MB, free: 9.297 MB / 334.1 MB (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_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.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)