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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 110.6 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.506/1.506, 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.05196/0.05196, allocations: 8.202 MB / 289.9 MB, free: 14.87 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002238/0.002238, allocations: 69.59 kB / 405.2 MB, free: 47.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09248, allocations: 50.9 MB / 456.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003998/0.09647, allocations: 2.436 MB / 458.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.09776, allocations: 0.6748 MB / 459.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001405/0.0979, allocations: 4 kB / 459.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.09809, allocations: 35.59 kB / 459.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.09828, allocations: 83.27 kB / 459.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.09859, allocations: 71.84 kB / 459.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000412/0.09901, allocations: 294.8 kB / 459.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.09921, allocations: 77.97 kB / 459.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.09939, allocations: 119.5 kB / 459.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.09958, allocations: 131.4 kB / 460 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.09963, allocations: 24 kB / 460 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.41e-05/0.09968, allocations: 27.94 kB / 460 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.596e-05/0.09974, allocations: 51.83 kB / 460.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.09989, allocations: 123.4 kB / 460.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004147/0.1003, allocations: 278.8 kB / 460.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.1003, allocations: 0 / 460.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.1003, allocations: 0 / 460.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1003, allocations: 4 kB / 460.5 MB, free: 10.57 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.001261/0.1016, allocations: 0.5862 MB / 461.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.1016, allocations: 8.031 kB / 461.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.868e-05/0.1017, allocations: 58.72 kB / 461.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.1018, allocations: 24.8 kB / 461.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.1022, allocations: 251.9 kB / 461.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.1022, allocations: 24.73 kB / 461.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.653e-05/0.1023, allocations: 24.38 kB / 461.5 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005493/0.1029, allocations: 227.3 kB / 461.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.1029, allocations: 7.953 kB / 461.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.1029, allocations: 8 kB / 461.7 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.1029, allocations: 7.938 kB / 461.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005676/0.1035, allocations: 197.6 kB / 461.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.1046, allocations: 0.6701 MB / 462.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007135/0.1053, allocations: 238.4 kB / 462.8 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.1056, allocations: 116.5 kB / 462.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1056, allocations: 0 / 462.9 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004528/0.1061, allocations: 169.2 kB / 463.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.794e-06/0.1061, allocations: 0 / 463.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00282/0.1089, allocations: 1.207 MB / 464.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.1089, allocations: 55.41 kB / 464.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.1091, allocations: 179.1 kB / 464.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/0.1092, allocations: 33.7 kB / 464.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1093, allocations: 140.9 kB / 464.7 MB, free: 6.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.888e-05/0.1094, allocations: 107 kB / 464.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.825e-05/0.1095, allocations: 61.69 kB / 464.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1096, allocations: 334.8 kB / 465.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000291/0.1099, allocations: 96.27 kB / 465.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.1103, allocations: 143.2 kB / 465.4 MB, free: 5.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.1116, allocations: 0.5432 MB / 465.9 MB, free: 4.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.1117, allocations: 4 kB / 466 MB, free: 4.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007957/0.1124, allocations: 362.5 kB / 466.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.831e-05/0.1125, allocations: 37.64 kB / 466.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1125, allocations: 0 / 466.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.1125, allocations: 4 kB / 466.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.1128, allocations: 79.94 kB / 466.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1128, allocations: 0 / 466.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1131, allocations: 31.91 kB / 466.5 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.1131, allocations: 8 kB / 466.5 MB, free: 4.223 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 >= 1e-15 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 >= 1e-15 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.0002629/0.1134, allocations: 165.3 kB / 466.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.1134, allocations: 27.8 kB / 466.7 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.467e-05/0.1135, allocations: 30.64 kB / 466.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.1135, allocations: 4 kB / 466.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1135, allocations: 0 / 466.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.1135, allocations: 0 / 466.7 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001389/0.1149, allocations: 0.7958 MB / 467.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1149, allocations: 0 / 467.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.1152, allocations: 75.95 kB / 467.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.1152, allocations: 3.984 kB / 467.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.1153, allocations: 8 kB / 467.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.1153, allocations: 0 / 467.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1153, allocations: 4 kB / 467.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.1163, allocations: 0.5254 MB / 468.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.1164, allocations: 92.97 kB / 468.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.106e-05/0.1165, allocations: 8 kB / 468.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1167, allocations: 24.11 kB / 468.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-05/0.1168, allocations: 47.81 kB / 468.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.911e-05/0.1168, allocations: 8 kB / 468.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.1169, allocations: 132.3 kB / 468.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1169, allocations: 0 / 468.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.1173, allocations: 64 kB / 468.5 MB, free: 2.102 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.001451/0.1187, allocations: 1.078 MB / 469.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007305/0.1194, allocations: 311.1 kB / 469.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1194, allocations: 0 / 469.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003359/0.1198, allocations: 135.8 kB / 470 MB, free: 0.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.1202, allocations: 71.52 kB / 470 MB, free: 488 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.1259, allocations: 3.02 MB / 473.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1263, allocations: 0.7522 MB / 473.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.1264, allocations: 22.28 kB / 473.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.1266, allocations: 75.42 kB / 473.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of SimCode: time 9.61e-07/0.1266, allocations: 0 / 473.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.1558, allocations: 5.451 MB / 479.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.493/8.649, allocations: 7.594 kB / 479.4 MB, free: 7.145 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 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.32436261093244] Failed to read output from testmodel.py, exit status != 0: 8.7226200113073 8.746726868 8.642981903 Calling exit ...