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.001335/0.001335, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001534/0.001534, allocations: 215.7 kB / 22.26 MB, free: 5.125 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.51/1.51, allocations: 207.6 MB / 233 MB, free: 9.973 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.05215/0.05215, allocations: 8.197 MB / 293.5 MB, free: 13.64 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.002183/0.002183, allocations: 86.06 kB / 410.4 MB, free: 46.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09/0.09218, allocations: 50.93 MB / 461.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.005068/0.09725, allocations: 2.439 MB / 463.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.09894, allocations: 0.6826 MB / 464.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.09912, allocations: 7.938 kB / 464.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.09932, allocations: 39.53 kB / 464.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.0995, allocations: 75.33 kB / 464.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.0999, allocations: 67.86 kB / 464.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005894/0.1005, allocations: 302.8 kB / 465 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.1007, allocations: 74.25 kB / 465 MB, free: 9.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002409/0.101, allocations: 123.6 kB / 465.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.1012, allocations: 123.5 kB / 465.3 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.1012, allocations: 31.92 kB / 465.3 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.306e-05/0.1013, allocations: 24 kB / 465.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.596e-05/0.1014, allocations: 51.84 kB / 465.4 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002631/0.1016, allocations: 127.4 kB / 465.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.1021, allocations: 278.8 kB / 465.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.1022, allocations: 0 / 465.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1022, allocations: 0 / 465.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.1022, allocations: 0 / 465.8 MB, free: 9.043 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.00158/0.1038, allocations: 0.5187 MB / 466.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.1038, allocations: 11.98 kB / 466.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.074e-05/0.1039, allocations: 54.73 kB / 466.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.249e-05/0.104, allocations: 28.8 kB / 466.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.1045, allocations: 190 kB / 466.6 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.1045, allocations: 28.8 kB / 466.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.072e-05/0.1046, allocations: 28.38 kB / 466.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007077/0.1053, allocations: 227.3 kB / 466.9 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.1053, allocations: 7.891 kB / 466.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.1054, allocations: 11.98 kB / 466.9 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1054, allocations: 4 kB / 466.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008062/0.1062, allocations: 197.6 kB / 467.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001482/0.1077, allocations: 0.6225 MB / 467.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009448/0.1086, allocations: 242.4 kB / 467.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000382/0.109, allocations: 108.8 kB / 468 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.109, allocations: 4 kB / 468 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005711/0.1096, allocations: 173.1 kB / 468.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.765e-06/0.1096, allocations: 0 / 468.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003694/0.1133, allocations: 1.046 MB / 469.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.1133, allocations: 63.41 kB / 469.3 MB, free: 5.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.1136, allocations: 183.2 kB / 469.5 MB, free: 5.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.1137, allocations: 29.7 kB / 469.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.1138, allocations: 144.8 kB / 469.7 MB, free: 4.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.114, allocations: 111.1 kB / 469.8 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1141, allocations: 57.69 kB / 469.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.1143, allocations: 334.8 kB / 470.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.1146, allocations: 100.3 kB / 470.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005021/0.1151, allocations: 135.4 kB / 470.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00213/0.1173, allocations: 0.5483 MB / 470.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1173, allocations: 0 / 470.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001027/0.1183, allocations: 362.3 kB / 471.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.281e-05/0.1184, allocations: 37.64 kB / 471.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1184, allocations: 0 / 471.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.861e-05/0.1184, allocations: 7.984 kB / 471.3 MB, free: 3.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004273/0.1188, allocations: 75.95 kB / 471.4 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.1188, allocations: 7.938 kB / 471.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.1191, allocations: 23.97 kB / 471.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.1192, allocations: 15.94 kB / 471.5 MB, free: 3.062 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.0002953/0.1195, allocations: 169.2 kB / 471.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.764e-05/0.1195, allocations: 23.8 kB / 471.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.057e-05/0.1196, allocations: 30.64 kB / 471.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1196, allocations: 4 kB / 471.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1196, allocations: 0 / 471.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.1196, allocations: 7.984 kB / 471.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.1213, allocations: 0.7639 MB / 472.4 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.1213, allocations: 4 kB / 472.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.1218, allocations: 67.89 kB / 472.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.1218, allocations: 4 kB / 472.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.1218, allocations: 12.06 kB / 472.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1218, allocations: 0 / 472.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.1218, allocations: 0 / 472.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.1232, allocations: 0.5292 MB / 473.1 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.659e-05/0.1233, allocations: 27.89 kB / 473.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.1234, allocations: 8 kB / 473.1 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.1236, allocations: 23.97 kB / 473.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.1237, allocations: 31.83 kB / 473.2 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.1238, allocations: 12 kB / 473.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.1239, allocations: 139.2 kB / 473.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1239, allocations: 0 / 473.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004037/0.1243, allocations: 64 kB / 473.4 MB, free: 1.074 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.001804/0.1261, allocations: 1.069 MB / 474.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.1271, allocations: 315.2 kB / 474.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1271, allocations: 0 / 474.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004607/0.1276, allocations: 139.8 kB / 474.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.1282, allocations: 51.75 kB / 474.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008049/0.1362, allocations: 3.023 MB / 477.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005576/0.1368, allocations: 0.7483 MB / 478.7 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.137, allocations: 30.27 kB / 478.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.1372, allocations: 79.41 kB / 478.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1372, allocations: 0 / 478.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04212/0.1793, allocations: 5.7 MB / 484.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.47, allocations: 3.953 kB / 484.5 MB, free: 5.797 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.29595949099894] Failed to read output from testmodel.py, exit status != 0: 11.58072875799553 11.597637143 11.492115034 Calling exit ...