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.001294/0.001294, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001407/0.001407, allocations: 213.9 kB / 22.24 MB, free: 4.855 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.337/1.337, 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.04961/0.04961, allocations: 8.194 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.002901/0.002901, allocations: 76.22 kB / 410.4 MB, free: 46.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.1008, allocations: 50.94 MB / 461.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.00387/0.1047, allocations: 2.299 MB / 463.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.1059, allocations: 0.6475 MB / 464.3 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.106, allocations: 7.938 kB / 464.3 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.1062, allocations: 39.59 kB / 464.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.1063, allocations: 75.33 kB / 464.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.1066, allocations: 75.86 kB / 464.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.107, allocations: 298.8 kB / 464.8 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001851/0.1071, allocations: 66.25 kB / 464.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.1073, allocations: 127.5 kB / 465 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.1075, allocations: 111.5 kB / 465.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.28e-05/0.1075, allocations: 24 kB / 465.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.567e-05/0.1076, allocations: 24 kB / 465.1 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.945e-05/0.1076, allocations: 51.77 kB / 465.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.1077, allocations: 103.5 kB / 465.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000346/0.1081, allocations: 286.8 kB / 465.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1081, allocations: 4 kB / 465.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1081, allocations: 0 / 465.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1081, 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.001048/0.1091, allocations: 0.5109 MB / 466.1 MB, free: 8.512 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1092, allocations: 15.98 kB / 466.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.963e-05/0.1093, allocations: 54.72 kB / 466.1 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.18e-05/0.1093, allocations: 32.73 kB / 466.2 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.1097, allocations: 194.1 kB / 466.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.1097, allocations: 16.81 kB / 466.4 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/0.1097, allocations: 24.38 kB / 466.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005866/0.1103, allocations: 223.3 kB / 466.6 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1103, allocations: 7.953 kB / 466.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.3e-05/0.1104, allocations: 8 kB / 466.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1104, allocations: 15.94 kB / 466.7 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005627/0.1109, allocations: 193.6 kB / 466.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.112, allocations: 0.5718 MB / 467.4 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/0.1127, allocations: 245.1 kB / 467.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.113, allocations: 112.7 kB / 467.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.113, allocations: 4 kB / 467.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.1135, allocations: 165.2 kB / 467.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.623e-06/0.1135, allocations: 0 / 467.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002567/0.116, allocations: 1.05 MB / 469 MB, free: 5.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.1161, allocations: 63.39 kB / 469 MB, free: 5.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.1163, allocations: 187.2 kB / 469.2 MB, free: 5.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.1163, allocations: 33.64 kB / 469.3 MB, free: 5.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.1164, allocations: 140.8 kB / 469.4 MB, free: 5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.757e-05/0.1165, allocations: 111.1 kB / 469.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.83e-05/0.1166, allocations: 53.7 kB / 469.6 MB, free: 4.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.1168, allocations: 334.8 kB / 469.9 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.1171, allocations: 130 kB / 470 MB, free: 4.359 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003517/0.1174, allocations: 161.1 kB / 470.2 MB, free: 4.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.1188, allocations: 0.5482 MB / 470.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1188, allocations: 0 / 470.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007976/0.1196, allocations: 396 kB / 471.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.1197, allocations: 37.64 kB / 471.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1197, allocations: 0 / 471.1 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.1197, allocations: 4 kB / 471.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003157/0.12, allocations: 79.88 kB / 471.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.12, allocations: 0 / 471.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.1202, allocations: 31.97 kB / 471.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.1203, allocations: 12 kB / 471.3 MB, free: 3.039 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.0002493/0.1205, allocations: 160 kB / 471.4 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.1205, allocations: 27.84 kB / 471.4 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.216e-05/0.1206, allocations: 34.64 kB / 471.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1206, allocations: 7.938 kB / 471.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1206, allocations: 0 / 471.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1206, allocations: 0 / 471.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001288/0.1219, allocations: 0.7328 MB / 472.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1219, allocations: 0 / 472.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003151/0.1222, allocations: 67.95 kB / 472.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1222, allocations: 4 kB / 472.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.1223, allocations: 4 kB / 472.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.766e-06/0.1223, allocations: 7.938 kB / 472.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1223, allocations: 0 / 472.3 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1233, allocations: 0.537 MB / 472.8 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.1234, allocations: 15.86 kB / 472.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1234, allocations: 12.03 kB / 472.9 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.1236, allocations: 19.98 kB / 472.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.638e-05/0.1237, allocations: 39.88 kB / 472.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.1237, allocations: 4 kB / 472.9 MB, free: 1.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.1239, allocations: 143.1 kB / 473.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1239, allocations: 0 / 473.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.1242, allocations: 64 kB / 473.1 MB, free: 1.078 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.001429/0.1256, allocations: 1.077 MB / 474.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007314/0.1263, allocations: 337.4 kB / 474.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1263, allocations: 0 / 474.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00034/0.1267, allocations: 135.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.0004185/0.1271, allocations: 64.06 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.005636/0.1327, allocations: 3.13 MB / 477.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001469/0.1329, allocations: 142.6 kB / 478 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001045/0.133, allocations: 22.3 kB / 478 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.1331, allocations: 87.41 kB / 478.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1331, allocations: 3.938 kB / 478.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03381/0.1669, allocations: 6.17 MB / 484.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.24, allocations: 7.922 kB / 484.3 MB, free: 5.777 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 & /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: 13.727730412967503] Failed to read output from testmodel.py, exit status != 0: 11.35023053130135 11.378764975 11.265884928 Calling exit ...