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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 101.5 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 208.9 kB / 19.42 MB, free: 3.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 207.6 MB / 229.8 MB, free: 11.42 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05251/0.05251, allocations: 8.194 MB / 289.9 MB, free: 14.86 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002369/0.002369, allocations: 69.14 kB / 405.2 MB, free: 47.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07139/0.07376, allocations: 50.9 MB / 456.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.00407/0.07783, allocations: 2.424 MB / 458.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.07908, allocations: 0.6319 MB / 459.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.07924, allocations: 7.938 kB / 459.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.0794, allocations: 35.66 kB / 459.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.07958, allocations: 79.28 kB / 459.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002491/0.07983, allocations: 75.83 kB / 459.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.08022, allocations: 290.8 kB / 459.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.08042, allocations: 73.94 kB / 459.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.08062, allocations: 115.6 kB / 459.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.08081, allocations: 123.5 kB / 460 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.907e-05/0.08085, allocations: 24 kB / 460 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.254e-05/0.0809, allocations: 24 kB / 460 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.295e-05/0.08096, allocations: 51.78 kB / 460.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.08111, allocations: 131.3 kB / 460.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.08152, allocations: 274.9 kB / 460.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.08152, allocations: 0 / 460.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.08152, allocations: 4 kB / 460.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.08153, allocations: 0 / 460.5 MB, free: 10.62 MB / 334.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.001114/0.08265, allocations: 0.5746 MB / 461 MB, free: 9.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.865e-05/0.08271, allocations: 11.97 kB / 461 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.873e-05/0.08277, allocations: 62.73 kB / 461.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.016e-05/0.08285, allocations: 28.75 kB / 461.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.08324, allocations: 248.6 kB / 461.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.231e-05/0.08326, allocations: 12.81 kB / 461.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.14e-05/0.08331, allocations: 28.36 kB / 461.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000559/0.08387, allocations: 219.4 kB / 461.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.08389, allocations: 4 kB / 461.6 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.08391, allocations: 12 kB / 461.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.08392, allocations: 11.98 kB / 461.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006093/0.08453, allocations: 197.5 kB / 461.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.08566, allocations: 0.7216 MB / 462.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007713/0.08643, allocations: 222.5 kB / 462.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.08678, allocations: 124.4 kB / 462.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.08681, allocations: 4 kB / 462.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004893/0.0873, allocations: 159.2 kB / 463.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 3.086e-06/0.0873, allocations: 0 / 463.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.003123/0.09042, allocations: 1.124 MB / 464.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.796e-05/0.09052, allocations: 55.41 kB / 464.2 MB, free: 6.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.09076, allocations: 179.5 kB / 464.4 MB, free: 6.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.0908, allocations: 33.7 kB / 464.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.09095, allocations: 140.8 kB / 464.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.09105, allocations: 107.1 kB / 464.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.09116, allocations: 53.7 kB / 464.7 MB, free: 6.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.09136, allocations: 330.8 kB / 465.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.09168, allocations: 91.92 kB / 465.2 MB, free: 5.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.092, allocations: 125.5 kB / 465.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.09349, allocations: 0.5154 MB / 465.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.0935, allocations: 0 / 465.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008342/0.09433, allocations: 332.3 kB / 466.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/0.09438, allocations: 37.62 kB / 466.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.09439, allocations: 0 / 466.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.09441, allocations: 8.031 kB / 466.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.09473, allocations: 71.89 kB / 466.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.09474, allocations: 0 / 466.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.09498, allocations: 23.97 kB / 466.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.09501, allocations: 12 kB / 466.3 MB, free: 4.422 MB / 334.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 >= 2.220446049250313e-16 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 >= 2.220446049250313e-16 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.0002684/0.09528, allocations: 173.3 kB / 466.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.09532, allocations: 23.8 kB / 466.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.809e-05/0.0954, allocations: 30.64 kB / 466.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.0954, allocations: 4 kB / 466.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.09541, allocations: 0 / 466.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.09541, allocations: 0 / 466.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.09672, allocations: 0.7098 MB / 467.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.09672, allocations: 0 / 467.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.09707, allocations: 72.02 kB / 467.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.09708, allocations: 0 / 467.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.0971, allocations: 8 kB / 467.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.09711, allocations: 3.938 kB / 467.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.09711, allocations: 4 kB / 467.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.09827, allocations: 0.502 MB / 467.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.833e-05/0.09837, allocations: 108.8 kB / 467.9 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.179e-05/0.09841, allocations: 4 kB / 467.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.09865, allocations: 24.02 kB / 467.9 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.09876, allocations: 31.91 kB / 468 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.09878, allocations: 8 kB / 468 MB, free: 2.613 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.09891, allocations: 136.6 kB / 468.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09891, allocations: 0 / 468.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.09928, allocations: 60 kB / 468.2 MB, free: 2.422 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.001531/0.1008, allocations: 1.043 MB / 469.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008556/0.1017, allocations: 295.1 kB / 469.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1017, allocations: 0 / 469.5 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003976/0.1021, allocations: 135.8 kB / 469.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005011/0.1026, allocations: 53.22 kB / 469.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006086/0.1087, allocations: 2.918 MB / 472.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.1091, allocations: 0.7479 MB / 473.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000127/0.1092, allocations: 22.3 kB / 473.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.1093, allocations: 79.41 kB / 473.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.1093, allocations: 0 / 473.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03109/0.1404, allocations: 5.234 MB / 478.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.469/8.61, allocations: 15.5 kB / 478.7 MB, free: 7.809 MB / 350.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.402076209997176] Failed to read output from testmodel.py, exit status != 0: 8.681132188998163 8.695342591 8.610878778 Calling exit ...