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.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.001039/0.001039, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008933/0.0008933, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9401/0.9401, allocations: 158.6 MB / 184.2 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] 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.02473/0.02473, allocations: 6.41 MB / 242.9 MB, free: 8.984 MB / 234.7 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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 359.8 MB, free: 4.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.148e-05/1.335e-05, allocations: 2.281 kB / 359.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002207/0.002221, allocations: 2.298 MB / 362.1 MB, free: 2.094 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000852/0.003073, allocations: 0.6553 MB / 362.7 MB, free: 1.43 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.003199, allocations: 11.94 kB / 362.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.003321, allocations: 39.53 kB / 362.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.003429, allocations: 71.34 kB / 362.9 MB, free: 1.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.003654, allocations: 83.7 kB / 362.9 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.003882, allocations: 310.6 kB / 363.3 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.004035, allocations: 66.34 kB / 363.3 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.00419, allocations: 167.7 kB / 363.5 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.305e-05/0.004283, allocations: 99.69 kB / 363.6 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.004314, allocations: 24 kB / 363.6 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.173e-05/0.004336, allocations: 24 kB / 363.6 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.305e-05/0.004369, allocations: 55.81 kB / 363.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.533e-05/0.004434, allocations: 91.75 kB / 363.8 MB, free: 416 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.004654, allocations: 291 kB / 364.1 MB, free: 124 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.004656, allocations: 0 / 364.1 MB, free: 124 kB / 282.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004657, allocations: 0 / 364.1 MB, free: 124 kB / 282.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.004662, allocations: 0 / 364.1 MB, free: 124 kB / 282.7 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.0007174/0.005379, allocations: 0.5145 MB / 364.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.005421, allocations: 15.98 kB / 364.6 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.589e-05/0.005467, allocations: 50.73 kB / 364.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.735e-05/0.005515, allocations: 28.8 kB / 364.7 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002691/0.005784, allocations: 197.3 kB / 364.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.005801, allocations: 16.88 kB / 364.9 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.005843, allocations: 28.36 kB / 364.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.00617, allocations: 220.6 kB / 365.1 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.006189, allocations: 12.12 kB / 365.1 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.006207, allocations: 8.125 kB / 365.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.006215, allocations: 8 kB / 365.1 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.006529, allocations: 189.8 kB / 365.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007812/0.007311, allocations: 0.5799 MB / 365.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.007781, allocations: 234.4 kB / 366.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.007952, allocations: 111.1 kB / 366.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.00797, allocations: 11.94 kB / 366.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.008239, allocations: 182.2 kB / 366.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.184e-06/0.008242, allocations: 0 / 366.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001494/0.009736, allocations: 1.036 MB / 367.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.009769, allocations: 55.41 kB / 367.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.009882, allocations: 183.2 kB / 367.7 MB, free: 12.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.009899, allocations: 37.64 kB / 367.7 MB, free: 12.22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/0.009966, allocations: 144.8 kB / 367.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.428e-05/0.01002, allocations: 111.1 kB / 368 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.01008, allocations: 57.69 kB / 368 MB, free: 11.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.616e-05/0.01017, allocations: 338.8 kB / 368.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.01034, allocations: 118 kB / 368.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.01052, allocations: 165.1 kB / 368.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007644/0.01128, allocations: 0.556 MB / 369.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.01128, allocations: 0 / 369.2 MB, free: 10.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004937/0.01178, allocations: 380.3 kB / 369.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.01181, allocations: 41.69 kB / 369.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.01181, allocations: 4.062 kB / 369.6 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.01182, allocations: 7.938 kB / 369.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.01199, allocations: 71.89 kB / 369.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.012, allocations: 0 / 369.7 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.0121, allocations: 27.97 kB / 369.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.01212, allocations: 11.94 kB / 369.7 MB, free: 10.12 MB / 298.7 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: 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.0001609/0.01228, allocations: 170.2 kB / 369.9 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.0123, allocations: 23.86 kB / 369.9 MB, free: 9.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.01234, allocations: 26.66 kB / 370 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01234, allocations: 7.938 kB / 370 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.01235, allocations: 0 / 370 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.01235, allocations: 3.984 kB / 370 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007453/0.0131, allocations: 0.7292 MB / 370.7 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.0131, allocations: 0 / 370.7 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.01327, allocations: 71.89 kB / 370.8 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.01327, allocations: 4.062 kB / 370.8 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.01329, allocations: 8 kB / 370.8 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.01329, allocations: 4 kB / 370.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01329, allocations: 0 / 370.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/0.0139, allocations: 0.537 MB / 371.3 MB, free: 8.453 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.654e-05/0.01393, allocations: 19.89 kB / 371.3 MB, free: 8.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.01396, allocations: 12 kB / 371.4 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.01407, allocations: 27.91 kB / 371.4 MB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.149e-05/0.01415, allocations: 35.95 kB / 371.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.01416, allocations: 4.094 kB / 371.4 MB, free: 8.355 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.51e-05/0.01425, allocations: 139.2 kB / 371.6 MB, free: 8.219 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01425, allocations: 0 / 371.6 MB, free: 8.219 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002222/0.01447, allocations: 64 kB / 371.6 MB, free: 8.156 MB / 298.7 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.0008519/0.01532, allocations: 1.077 MB / 372.7 MB, free: 7.043 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004893/0.01581, allocations: 349.2 kB / 373 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01581, allocations: 0 / 373 MB, free: 6.684 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.01601, allocations: 135.8 kB / 373.2 MB, free: 6.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.01632, allocations: 56.45 kB / 373.2 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.01954, allocations: 3.039 MB / 376.3 MB, free: 3.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.285e-05/0.01963, allocations: 146.6 kB / 376.4 MB, free: 3.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.966e-05/0.01971, allocations: 26.27 kB / 376.4 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.867e-05/0.01981, allocations: 80.48 kB / 376.5 MB, free: 3.051 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01981, allocations: 0 / 376.5 MB, free: 3.051 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01831/0.03812, allocations: 6.327 MB / 382.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.832/6.87, allocations: 7.922 kB / 382.8 MB, free: 12.82 MB / 314.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.89361947774887] Failed to read output from testmodel.py, exit status != 0: 6.952518190257251 6.963628375 6.9569302120000005 Calling exit ...