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.001374/0.001374, allocations: 105.8 kB / 16.45 MB, free: 6.453 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.001543/0.001543, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.468/1.468, allocations: 207.6 MB / 229.8 MB, free: 11.41 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.0512/0.0512, allocations: 8.201 MB / 289.9 MB, free: 14.85 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_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: 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.003384/0.003384, allocations: 72.97 kB / 405.2 MB, free: 47.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09641, allocations: 50.9 MB / 456.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004/0.1004, allocations: 2.428 MB / 458.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.1016, allocations: 0.6865 MB / 459.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1017, allocations: 7.938 kB / 459.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1019, allocations: 31.59 kB / 459.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.102, allocations: 79.41 kB / 459.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.1023, allocations: 75.72 kB / 459.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003515/0.1026, allocations: 294.8 kB / 459.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.1028, allocations: 77.95 kB / 459.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.103, allocations: 123.5 kB / 459.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001709/0.1031, allocations: 123.5 kB / 460 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.1032, allocations: 24 kB / 460.1 MB, free: 11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.13e-05/0.1032, allocations: 24 kB / 460.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.931e-05/0.1033, allocations: 59.7 kB / 460.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1034, allocations: 127.4 kB / 460.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.1037, allocations: 278.8 kB / 460.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1038, allocations: 4 kB / 460.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1038, allocations: 0 / 460.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.184e-05/0.1038, allocations: 0 / 460.5 MB, free: 10.52 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.001151/0.1049, allocations: 0.5862 MB / 461.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.105, allocations: 8.031 kB / 461.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.485e-05/0.105, allocations: 58.72 kB / 461.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.1051, allocations: 28.8 kB / 461.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003444/0.1054, allocations: 247.9 kB / 461.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.1055, allocations: 16.81 kB / 461.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/0.1055, allocations: 28.31 kB / 461.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.106, allocations: 223.3 kB / 461.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.1061, allocations: 7.953 kB / 461.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.1061, allocations: 11.98 kB / 461.7 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.1061, allocations: 8 kB / 461.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005918/0.1067, allocations: 193.5 kB / 461.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1078, allocations: 0.6701 MB / 462.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007464/0.1085, allocations: 234.4 kB / 462.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.1088, allocations: 112.8 kB / 462.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.1089, allocations: 7.938 kB / 463 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.1093, allocations: 165.2 kB / 463.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.643e-06/0.1093, allocations: 0 / 463.1 MB, free: 7.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002755/0.1121, allocations: 1.207 MB / 464.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.1121, allocations: 55.41 kB / 464.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.1123, allocations: 179.1 kB / 464.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.164e-05/0.1123, allocations: 33.7 kB / 464.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1124, allocations: 140.9 kB / 464.7 MB, free: 6.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.192e-05/0.1125, allocations: 111 kB / 464.8 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.682e-05/0.1126, allocations: 57.7 kB / 464.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1128, allocations: 338.8 kB / 465.2 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.1131, allocations: 96.25 kB / 465.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.1134, allocations: 139.3 kB / 465.4 MB, free: 5.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0015/0.1149, allocations: 0.5432 MB / 466 MB, free: 4.711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1149, allocations: 0 / 466 MB, free: 4.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000866/0.1158, allocations: 362.5 kB / 466.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.756e-05/0.1158, allocations: 37.7 kB / 466.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1159, allocations: 8 kB / 466.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.1159, allocations: 4 kB / 466.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.1162, allocations: 71.89 kB / 466.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1162, allocations: 0 / 466.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.1165, allocations: 27.97 kB / 466.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.1165, allocations: 8 kB / 466.5 MB, free: 4.184 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: 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.000255/0.1167, allocations: 173 kB / 466.7 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.329e-05/0.1168, allocations: 31.73 kB / 466.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.845e-05/0.1169, allocations: 30.64 kB / 466.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1169, allocations: 4 kB / 466.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1169, allocations: 4 kB / 466.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1169, allocations: 0 / 466.7 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.1182, allocations: 0.7922 MB / 467.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1182, allocations: 4.062 kB / 467.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/0.1186, allocations: 67.95 kB / 467.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1186, allocations: 0 / 467.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.1186, allocations: 8 kB / 467.6 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1186, allocations: 3.984 kB / 467.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.1186, allocations: 7.938 kB / 467.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.1197, allocations: 0.5331 MB / 468.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.1198, allocations: 92.97 kB / 468.2 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.1198, allocations: 8 kB / 468.3 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002387/0.1201, allocations: 27.97 kB / 468.3 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/0.1202, allocations: 31.91 kB / 468.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.1202, allocations: 8 kB / 468.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001247/0.1203, allocations: 136.3 kB / 468.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1203, allocations: 0 / 468.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003329/0.1206, allocations: 67.94 kB / 468.5 MB, free: 2.051 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: 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.001516/0.1222, allocations: 1.07 MB / 469.6 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007755/0.1229, allocations: 315.2 kB / 469.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1229, allocations: 0 / 469.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003703/0.1233, allocations: 131.9 kB / 470 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.1237, allocations: 73.34 kB / 470.1 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005802/0.1295, allocations: 3.018 MB / 473.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.1299, allocations: 0.7522 MB / 473.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.13, allocations: 18.3 kB / 473.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.1302, allocations: 79.41 kB / 474 MB, free: 12.42 MB / 350.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1302, allocations: 0 / 474 MB, free: 12.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.1593, allocations: 5.452 MB / 479.4 MB, free: 7.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.395/8.555, allocations: 3.938 kB / 479.4 MB, free: 7.105 MB / 350.1 MB " [Timeout remaining time 651] (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 sys.exit(0), Time elapsed: 11.235755991991027] Failed to read output from testmodel.py, exit status != 0: 8.627106897009071 8.640407916 8.53383597 Calling exit ...