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.001404/0.001404, allocations: 114.3 kB / 18.94 MB, free: 2.793 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.002093/0.002093, allocations: 218.8 kB / 22.26 MB, free: 5.211 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.489/1.489, allocations: 207.6 MB / 233 MB, free: 9.988 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.05243/0.05243, allocations: 8.196 MB / 293.5 MB, free: 13.66 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.002248/0.002248, allocations: 64.38 kB / 410.4 MB, free: 46.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08023/0.08248, allocations: 50.94 MB / 461.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004213/0.08669, allocations: 2.458 MB / 463.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.08813, allocations: 0.6709 MB / 464.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.08828, allocations: 11.88 kB / 464.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.08844, allocations: 35.66 kB / 464.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001739/0.08862, allocations: 79.33 kB / 464.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002913/0.08891, allocations: 75.84 kB / 464.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.08931, allocations: 298.7 kB / 465 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002018/0.08951, allocations: 74.25 kB / 465 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001673/0.08968, allocations: 127.5 kB / 465.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.08987, allocations: 119.5 kB / 465.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.08991, allocations: 27.98 kB / 465.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.327e-05/0.08995, allocations: 24 kB / 465.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.09001, allocations: 51.83 kB / 465.4 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.09016, allocations: 131.4 kB / 465.5 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.09052, allocations: 282.8 kB / 465.8 MB, free: 8.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.09053, allocations: 0 / 465.8 MB, free: 8.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09053, allocations: 0 / 465.8 MB, free: 8.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.09054, allocations: 0 / 465.8 MB, free: 8.918 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.00109/0.09163, allocations: 0.5109 MB / 466.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.09167, allocations: 19.98 kB / 466.3 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.964e-05/0.09174, allocations: 54.73 kB / 466.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.0918, allocations: 28.73 kB / 466.4 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.09216, allocations: 194 kB / 466.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.09218, allocations: 16.81 kB / 466.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.09224, allocations: 24.38 kB / 466.6 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.09277, allocations: 227.3 kB / 466.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.09279, allocations: 11.89 kB / 466.9 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.09281, allocations: 4 kB / 466.9 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.09282, allocations: 8 kB / 466.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005565/0.09337, allocations: 193.6 kB / 467.1 MB, free: 7.566 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.09449, allocations: 0.6303 MB / 467.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007487/0.09524, allocations: 238.4 kB / 467.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.09554, allocations: 116.8 kB / 468 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.09556, allocations: 0 / 468 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004322/0.09599, allocations: 169.2 kB / 468.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.09599, allocations: 3.938 kB / 468.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002582/0.09857, allocations: 1.05 MB / 469.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.482e-05/0.09865, allocations: 59.34 kB / 469.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.09886, allocations: 179.2 kB / 469.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.09889, allocations: 37.7 kB / 469.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.09902, allocations: 140.8 kB / 469.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.09913, allocations: 119.1 kB / 469.8 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.09923, allocations: 53.7 kB / 469.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.09941, allocations: 330.8 kB / 470.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.09972, allocations: 100.2 kB / 470.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.1001, allocations: 135.4 kB / 470.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.1015, allocations: 0.5443 MB / 470.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1015, allocations: 4 kB / 470.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008431/0.1023, allocations: 370.3 kB / 471.3 MB, free: 3.109 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.1024, allocations: 35.2 kB / 471.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.1024, allocations: 4 kB / 471.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1024, allocations: 0 / 471.3 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000354/0.1028, allocations: 79.89 kB / 471.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.1028, allocations: 7.969 kB / 471.4 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002213/0.103, allocations: 27.92 kB / 471.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.103, allocations: 16.03 kB / 471.5 MB, free: 2.938 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.0002703/0.1033, allocations: 155.2 kB / 471.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.1033, allocations: 27.8 kB / 471.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.34e-05/0.1034, allocations: 34.64 kB / 471.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1034, allocations: 4 kB / 471.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.1034, allocations: 0 / 471.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1034, allocations: 0 / 471.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1048, allocations: 0.7679 MB / 472.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.1048, allocations: 3.984 kB / 472.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/0.1051, allocations: 67.89 kB / 472.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1051, allocations: 0 / 472.5 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.1052, allocations: 8 kB / 472.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.1052, allocations: 4 kB / 472.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1052, allocations: 0 / 472.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.1063, allocations: 0.5331 MB / 473.1 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.1063, allocations: 19.86 kB / 473.1 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.1063, allocations: 12 kB / 473.1 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.1066, allocations: 24.02 kB / 473.1 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1067, allocations: 31.89 kB / 473.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1067, allocations: 11.98 kB / 473.2 MB, free: 1.156 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001239/0.1068, allocations: 131.2 kB / 473.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1068, allocations: 4 kB / 473.3 MB, free: 1.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.1072, allocations: 60 kB / 473.4 MB, free: 0.9648 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.001464/0.1086, allocations: 1.085 MB / 474.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000741/0.1094, allocations: 307.2 kB / 474.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1094, allocations: 0 / 474.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003511/0.1097, allocations: 140 kB / 474.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.1102, allocations: 59.94 kB / 474.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005645/0.1158, allocations: 3.019 MB / 478 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.1162, allocations: 0.7522 MB / 478.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.1163, allocations: 22.3 kB / 478.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.1165, allocations: 75.41 kB / 478.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1165, allocations: 11.94 kB / 478.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03415/0.1506, allocations: 5.69 MB / 484.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.42, allocations: 11.88 kB / 484.5 MB, free: 5.676 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 & /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: 14.097366451052949] Failed to read output from testmodel.py, exit status != 0: 11.532444827957079 11.563067966 11.46729987 Calling exit ...