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.001308/0.001308, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001703/0.001703, allocations: 209.3 kB / 22.24 MB, free: 5.262 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.395/1.395, allocations: 207.7 MB / 233.1 MB, free: 9.777 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.049/0.049, allocations: 8.199 MB / 293.5 MB, free: 13.46 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.002276/0.002276, allocations: 77.09 kB / 410.4 MB, free: 46.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.08429, allocations: 50.93 MB / 461.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.00377/0.08806, allocations: 2.302 MB / 463.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.08926, allocations: 0.6515 MB / 464.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.08937, allocations: 7.938 kB / 464.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.08952, allocations: 31.66 kB / 464.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.08967, allocations: 71.36 kB / 464.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.08993, allocations: 75.83 kB / 464.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004161/0.09034, allocations: 306.7 kB / 464.8 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.09053, allocations: 70.23 kB / 464.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.09069, allocations: 115.6 kB / 465 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.0909, allocations: 111.4 kB / 465.1 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.09094, allocations: 24 kB / 465.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.735e-05/0.09099, allocations: 24 kB / 465.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.09105, allocations: 55.83 kB / 465.2 MB, free: 9.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.09119, allocations: 111.5 kB / 465.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003539/0.09154, allocations: 282.8 kB / 465.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.09155, allocations: 7.938 kB / 465.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09155, allocations: 0 / 465.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.09156, allocations: 0 / 465.6 MB, free: 9.059 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.001118/0.09267, allocations: 0.5148 MB / 466.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.09272, allocations: 11.98 kB / 466.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.063e-05/0.09279, allocations: 58.72 kB / 466.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.333e-05/0.09285, allocations: 24.8 kB / 466.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.09321, allocations: 198 kB / 466.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.09324, allocations: 16.81 kB / 466.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.09329, allocations: 28.36 kB / 466.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005387/0.09383, allocations: 223.4 kB / 466.6 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.09385, allocations: 7.938 kB / 466.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.09388, allocations: 12 kB / 466.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.09389, allocations: 4 kB / 466.7 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005778/0.09447, allocations: 201.5 kB / 466.9 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.09556, allocations: 0.5679 MB / 467.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007491/0.09631, allocations: 234.4 kB / 467.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003204/0.09663, allocations: 112.8 kB / 467.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.09665, allocations: 0 / 467.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.09709, allocations: 173.1 kB / 467.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.653e-06/0.0971, allocations: 0 / 467.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002597/0.09969, allocations: 1.05 MB / 469 MB, free: 5.453 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.09974, allocations: 55.41 kB / 469 MB, free: 5.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.09993, allocations: 183.2 kB / 469.2 MB, free: 5.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.09996, allocations: 37.7 kB / 469.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1001, allocations: 136.8 kB / 469.4 MB, free: 5.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.455e-05/0.1002, allocations: 115 kB / 469.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.1003, allocations: 53.7 kB / 469.5 MB, free: 4.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002033/0.1005, allocations: 334.8 kB / 469.9 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.1008, allocations: 138 kB / 470 MB, free: 4.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.1011, allocations: 157.1 kB / 470.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.1025, allocations: 0.5482 MB / 470.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1025, allocations: 3.938 kB / 470.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007904/0.1033, allocations: 400 kB / 471.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.1034, allocations: 33.64 kB / 471.1 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1034, allocations: 4 kB / 471.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1034, allocations: 0 / 471.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.1037, allocations: 75.89 kB / 471.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.1037, allocations: 4 kB / 471.2 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.1039, allocations: 28.03 kB / 471.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.1039, allocations: 12 kB / 471.3 MB, free: 3.047 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.0002657/0.1042, allocations: 183.5 kB / 471.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/0.1042, allocations: 19.84 kB / 471.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.83e-05/0.1043, allocations: 30.64 kB / 471.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1043, allocations: 4 kB / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1043, allocations: 0 / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1043, allocations: 0 / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.1057, allocations: 0.7328 MB / 472.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1057, allocations: 4 kB / 472.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.106, allocations: 67.89 kB / 472.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.106, allocations: 0 / 472.3 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.106, allocations: 11.98 kB / 472.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.106, allocations: 0 / 472.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.106, allocations: 0 / 472.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.1071, allocations: 0.5409 MB / 472.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-05/0.1071, allocations: 19.86 kB / 472.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.1071, allocations: 8 kB / 472.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.1074, allocations: 24.02 kB / 472.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.1075, allocations: 31.89 kB / 472.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1075, allocations: 16 kB / 472.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001121/0.1076, allocations: 135.2 kB / 473.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1076, allocations: 0 / 473.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004169/0.108, allocations: 64 kB / 473.1 MB, free: 1.082 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.001427/0.1094, allocations: 1.073 MB / 474.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007594/0.1102, allocations: 345.2 kB / 474.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1102, allocations: 0 / 474.6 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003371/0.1105, allocations: 131.8 kB / 474.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.111, allocations: 67.94 kB / 474.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.1165, allocations: 3.123 MB / 477.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.1167, allocations: 146.6 kB / 478 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001151/0.1168, allocations: 30.27 kB / 478 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.117, allocations: 79.41 kB / 478.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.117, allocations: 0 / 478.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03442/0.1514, allocations: 6.177 MB / 484.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.12, allocations: 3.859 kB / 484.3 MB, free: 5.77 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.81469036405906] Failed to read output from testmodel.py, exit status != 0: 11.227218913845718 11.251673177 11.15589447 Calling exit ...