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.001323/0.001323, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001488/0.001488, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.517/1.517, allocations: 207.6 MB / 233 MB, free: 10 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.05263/0.05263, allocations: 8.197 MB / 293.5 MB, free: 13.66 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.002419/0.002419, allocations: 84.22 kB / 410.4 MB, free: 46.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07453/0.07695, allocations: 50.93 MB / 461.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.004581/0.08153, allocations: 2.42 MB / 463.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.08275, allocations: 0.6436 MB / 464.4 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.08288, allocations: 7.938 kB / 464.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.08305, allocations: 39.59 kB / 464.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001621/0.08322, allocations: 67.41 kB / 464.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.08348, allocations: 71.84 kB / 464.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.08385, allocations: 298.7 kB / 464.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.08406, allocations: 74.23 kB / 465 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.08427, allocations: 115.6 kB / 465.1 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.08447, allocations: 123.5 kB / 465.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.08451, allocations: 27.94 kB / 465.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.435e-05/0.08456, allocations: 24 kB / 465.2 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.349e-05/0.08463, allocations: 59.77 kB / 465.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.08478, allocations: 127.4 kB / 465.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003743/0.08515, allocations: 270.9 kB / 465.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.08516, allocations: 0 / 465.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.08516, allocations: 4 kB / 465.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.08517, allocations: 0 / 465.7 MB, free: 9.137 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.001053/0.08622, allocations: 0.507 MB / 466.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.08626, allocations: 11.98 kB / 466.2 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.229e-05/0.08633, allocations: 54.73 kB / 466.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.998e-05/0.08639, allocations: 28.75 kB / 466.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003554/0.08674, allocations: 188.7 kB / 466.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.08677, allocations: 20.81 kB / 466.5 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.955e-05/0.08684, allocations: 24.38 kB / 466.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005384/0.08738, allocations: 231.3 kB / 466.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.08739, allocations: 4 kB / 466.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.08741, allocations: 7.938 kB / 466.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.08742, allocations: 8 kB / 466.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005679/0.08799, allocations: 201.6 kB / 467 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.08909, allocations: 0.6488 MB / 467.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007296/0.08982, allocations: 238.3 kB / 467.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.09012, allocations: 108.8 kB / 468 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.09014, allocations: 4 kB / 468 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.09053, allocations: 163.2 kB / 468.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.754e-06/0.09053, allocations: 0 / 468.1 MB, free: 6.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002438/0.09297, allocations: 0.9838 MB / 469.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/0.09302, allocations: 55.41 kB / 469.2 MB, free: 5.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.09321, allocations: 187.5 kB / 469.3 MB, free: 5.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/0.09324, allocations: 29.7 kB / 469.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.09335, allocations: 144.8 kB / 469.5 MB, free: 5.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.584e-05/0.09344, allocations: 95.12 kB / 469.6 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.371e-05/0.09353, allocations: 53.7 kB / 469.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.09369, allocations: 330.8 kB / 470 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002879/0.09398, allocations: 95.94 kB / 470.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003049/0.09429, allocations: 125.4 kB / 470.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.09565, allocations: 0.5115 MB / 470.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.09565, allocations: 0 / 470.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007616/0.09641, allocations: 340.5 kB / 471 MB, free: 3.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.447e-05/0.09646, allocations: 37.64 kB / 471.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.09646, allocations: 0 / 471.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.09648, allocations: 0 / 471.1 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.09679, allocations: 75.88 kB / 471.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.0968, allocations: 4 kB / 471.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.09702, allocations: 24.02 kB / 471.2 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.09705, allocations: 11.98 kB / 471.2 MB, free: 3.348 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.0002505/0.0973, allocations: 161.8 kB / 471.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.09734, allocations: 35.8 kB / 471.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.927e-05/0.09741, allocations: 30.64 kB / 471.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.09741, allocations: 0 / 471.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.09742, allocations: 0 / 471.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.09742, allocations: 4 kB / 471.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.09869, allocations: 0.6752 MB / 472.1 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.217e-06/0.0987, allocations: 7.938 kB / 472.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003256/0.09902, allocations: 67.88 kB / 472.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/0.09903, allocations: 4 kB / 472.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.09905, allocations: 8 kB / 472.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.09905, allocations: 4 kB / 472.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.09905, allocations: 0 / 472.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.1001, allocations: 0.5058 MB / 472.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.658e-05/0.1001, allocations: 15.86 kB / 472.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.1002, allocations: 12.03 kB / 472.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.1004, allocations: 19.98 kB / 472.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.1005, allocations: 39.77 kB / 472.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.1005, allocations: 11.98 kB / 472.8 MB, free: 1.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001227/0.1007, allocations: 132.6 kB / 472.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1007, allocations: 0 / 472.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.101, allocations: 64 kB / 473 MB, free: 1.477 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.001461/0.1024, allocations: 1.038 MB / 474 MB, free: 416 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007186/0.1032, allocations: 291.2 kB / 474.3 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1032, allocations: 0 / 474.3 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003557/0.1035, allocations: 131.9 kB / 474.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.1039, allocations: 51.66 kB / 474.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005551/0.1095, allocations: 2.925 MB / 477.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.1099, allocations: 0.7519 MB / 478.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.63e-05/0.11, allocations: 18.3 kB / 478.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.1102, allocations: 75.41 kB / 478.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1102, allocations: 0 / 478.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03281/0.143, allocations: 5.493 MB / 483.7 MB, free: 6.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.51, allocations: 11.38 kB / 483.8 MB, free: 6.582 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.374129458003154] Failed to read output from testmodel.py, exit status != 0: 11.620938109001145 11.645240871 11.555361496 Calling exit ...