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.001331/0.001331, 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.001716/0.001716, allocations: 194.4 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.48/1.48, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04186/0.04186, allocations: 8.112 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.002175/0.002176, allocations: 76.36 kB / 337.3 MB, free: 26.45 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07811/0.08031, allocations: 48.29 MB / 385.6 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003454/0.0838, allocations: 2.413 MB / 388 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.0849, allocations: 0.6709 MB / 388.7 MB, free: 6.992 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.08503, allocations: 11.88 kB / 388.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.08519, allocations: 31.66 kB / 388.7 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.08535, allocations: 79.33 kB / 388.8 MB, free: 6.871 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.08558, allocations: 75.84 kB / 388.9 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.08591, allocations: 294.8 kB / 389.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.08611, allocations: 98.25 kB / 389.3 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.08625, allocations: 115.6 kB / 389.4 MB, free: 6.293 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.08641, allocations: 131.5 kB / 389.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.184e-05/0.08645, allocations: 24 kB / 389.5 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.519e-05/0.0865, allocations: 24 kB / 389.5 MB, free: 6.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.124e-05/0.08656, allocations: 51.83 kB / 389.6 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.0867, allocations: 135.3 kB / 389.7 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002605/0.08696, allocations: 271 kB / 390 MB, free: 5.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.08698, allocations: 0 / 390 MB, free: 5.668 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.08698, allocations: 0 / 390 MB, free: 5.668 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.087, allocations: 0 / 390 MB, free: 5.668 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009644/0.08797, allocations: 0.5864 MB / 390.6 MB, free: 5.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.209e-05/0.08801, allocations: 8.031 kB / 390.6 MB, free: 5.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.696e-05/0.08807, allocations: 54.73 kB / 390.6 MB, free: 4.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.08813, allocations: 24.66 kB / 390.7 MB, free: 4.934 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.08838, allocations: 247.8 kB / 390.9 MB, free: 4.652 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.08842, allocations: 20.81 kB / 390.9 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.08847, allocations: 32.3 kB / 391 MB, free: 4.602 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.08897, allocations: 235.3 kB / 391.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.089, allocations: 0 / 391.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.08902, allocations: 12 kB / 391.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.08904, allocations: 4 kB / 391.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005665/0.08961, allocations: 197.5 kB / 391.4 MB, free: 4.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.09064, allocations: 0.6661 MB / 392.1 MB, free: 3.438 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/0.09137, allocations: 247.1 kB / 392.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.09168, allocations: 117.2 kB / 392.4 MB, free: 3.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.09171, allocations: 11.94 kB / 392.4 MB, free: 3.059 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000444/0.09216, allocations: 170.3 kB / 392.6 MB, free: 2.883 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.754e-06/0.09218, allocations: 0 / 392.6 MB, free: 2.883 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002545/0.09473, allocations: 1.195 MB / 393.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.141e-05/0.09478, allocations: 63.41 kB / 393.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.09494, allocations: 182.9 kB / 394 MB, free: 1.336 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.09498, allocations: 29.7 kB / 394.1 MB, free: 1.301 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.913e-05/0.09507, allocations: 136.8 kB / 394.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.272e-05/0.09515, allocations: 114.4 kB / 394.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.732e-05/0.09524, allocations: 61.69 kB / 394.4 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.09537, allocations: 330.8 kB / 394.7 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002926/0.09567, allocations: 104.2 kB / 394.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.09599, allocations: 139.3 kB / 394.9 MB, free: 416 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.09736, allocations: 0.5388 MB / 395.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.09737, allocations: 3.938 kB / 395.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007615/0.09814, allocations: 362.4 kB / 395.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.09818, allocations: 37.64 kB / 395.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.09819, allocations: 0 / 395.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.09821, allocations: 4 kB / 395.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.09853, allocations: 83.88 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.09855, allocations: 4 kB / 395.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.09877, allocations: 19.98 kB / 396 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.0988, allocations: 15.98 kB / 396 MB, free: 15.3 MB / 302.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.0001984/0.09901, allocations: 167.7 kB / 396.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.072e-05/0.09906, allocations: 23.66 kB / 396.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.261e-05/0.09913, allocations: 30.64 kB / 396.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.09914, allocations: 4 kB / 396.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.09915, allocations: 0 / 396.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.09916, allocations: 0 / 396.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.1003, allocations: 0.7957 MB / 397 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1004, allocations: 4 kB / 397 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/0.1007, allocations: 71.95 kB / 397.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.1007, allocations: 3.984 kB / 397.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1007, allocations: 8 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1007, allocations: 0 / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1007, allocations: 4 kB / 397.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1018, allocations: 0.5359 MB / 397.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.779e-05/0.1019, allocations: 96.83 kB / 397.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.1019, allocations: 8 kB / 397.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000234/0.1022, allocations: 24.02 kB / 397.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.637e-05/0.1023, allocations: 31.91 kB / 397.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.1023, allocations: 15.98 kB / 397.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1024, allocations: 132.3 kB / 397.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1024, allocations: 0 / 397.9 MB, free: 13.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003148/0.1027, allocations: 64 kB / 398 MB, free: 13.18 MB / 302.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.001341/0.1041, allocations: 1.074 MB / 399.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007781/0.1049, allocations: 342.8 kB / 399.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1049, allocations: 0 / 399.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.1052, allocations: 151.8 kB / 399.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004353/0.1057, allocations: 60.03 kB / 399.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005369/0.1111, allocations: 2.987 MB / 402.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1114, allocations: 0.756 MB / 403.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.845e-05/0.1115, allocations: 22.3 kB / 403.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.1116, allocations: 79.41 kB / 403.4 MB, free: 7.543 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1116, allocations: 4 kB / 403.5 MB, free: 7.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.1343, allocations: 5.313 MB / 408.8 MB, free: 2.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.801, allocations: 448 / 408.8 MB, free: 2.324 MB / 302.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)