Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.001674/0.001674, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002336/0.002336, allocations: 217.9 kB / 23.04 MB, free: 5.074 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.409/1.409, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.06578/0.06578, allocations: 8.191 MB / 294.3 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,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem",fmuType="cs",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.002106/0.002106, allocations: 72.2 kB / 411.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08298/0.08509, allocations: 50.93 MB / 462.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003928/0.08902, allocations: 2.427 MB / 464.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.09013, allocations: 0.6397 MB / 465.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.09025, allocations: 11.88 kB / 465.2 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.09041, allocations: 35.66 kB / 465.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.09056, allocations: 71.36 kB / 465.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.09084, allocations: 75.83 kB / 465.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000359/0.0912, allocations: 294.8 kB / 465.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.09139, allocations: 74.23 kB / 465.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.09156, allocations: 119.6 kB / 465.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.09172, allocations: 119.5 kB / 466 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.09176, allocations: 24 kB / 466 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.573e-05/0.09181, allocations: 24 kB / 466 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.648e-05/0.09187, allocations: 55.77 kB / 466.1 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.09201, allocations: 131.3 kB / 466.2 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003391/0.09235, allocations: 278.9 kB / 466.5 MB, free: 9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.09235, allocations: 0 / 466.5 MB, free: 9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.09235, allocations: 0 / 466.5 MB, free: 9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.09236, allocations: 0 / 466.5 MB, free: 9 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.0009901/0.09335, allocations: 0.4993 MB / 467 MB, free: 8.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.09339, allocations: 15.97 kB / 467 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.029e-05/0.09341, allocations: 8.625 kB / 467 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.509e-05/0.09347, allocations: 58.67 kB / 467.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.09353, allocations: 28.75 kB / 467.1 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.09383, allocations: 186.8 kB / 467.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.09385, allocations: 16.81 kB / 467.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.217e-05/0.0939, allocations: 24.38 kB / 467.3 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.09442, allocations: 227.2 kB / 467.5 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.09444, allocations: 7.984 kB / 467.6 MB, free: 7.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.09446, allocations: 8 kB / 467.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.09447, allocations: 8 kB / 467.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000565/0.09503, allocations: 197.5 kB / 467.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.09609, allocations: 0.6566 MB / 468.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/0.09678, allocations: 226.5 kB / 468.6 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002972/0.09708, allocations: 112.8 kB / 468.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.09709, allocations: 7.938 kB / 468.8 MB, free: 6.598 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003913/0.09749, allocations: 159.2 kB / 468.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.814e-06/0.09749, allocations: 0 / 468.9 MB, free: 6.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002383/0.09987, allocations: 0.9761 MB / 469.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.09991, allocations: 63.28 kB / 470 MB, free: 5.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.1001, allocations: 179.6 kB / 470.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.1001, allocations: 29.7 kB / 470.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.1002, allocations: 144.8 kB / 470.3 MB, free: 4.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.1003, allocations: 107.1 kB / 470.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-05/0.1004, allocations: 53.69 kB / 470.5 MB, free: 4.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1005, allocations: 330.8 kB / 470.8 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.1008, allocations: 91.92 kB / 470.9 MB, free: 4.371 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.1011, allocations: 121.5 kB / 471 MB, free: 4.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001309/0.1024, allocations: 0.527 MB / 471.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1024, allocations: 0 / 471.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007275/0.1031, allocations: 340.4 kB / 471.8 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.1032, allocations: 36.05 kB / 471.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1032, allocations: 4.031 kB / 471.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.1032, allocations: 4 kB / 471.9 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.1035, allocations: 71.89 kB / 472 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1035, allocations: 0 / 472 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.1037, allocations: 23.97 kB / 472 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.1037, allocations: 12 kB / 472 MB, free: 3.199 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002049/0.1039, allocations: 163.5 kB / 472.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.104, allocations: 27.8 kB / 472.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.326e-05/0.104, allocations: 26.66 kB / 472.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.104, allocations: 7.969 kB / 472.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.104, allocations: 4 kB / 472.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1041, allocations: 4 kB / 472.2 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.1052, allocations: 0.6713 MB / 472.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1052, allocations: 0 / 472.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003046/0.1055, allocations: 68.02 kB / 473 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1055, allocations: 4 kB / 473 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.1055, allocations: 7.984 kB / 473 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1055, allocations: 4 kB / 473 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1055, allocations: 3.938 kB / 473 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009972/0.1065, allocations: 0.4979 MB / 473.5 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.1066, allocations: 19.86 kB / 473.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.1066, allocations: 8 kB / 473.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.1068, allocations: 31.95 kB / 473.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.1069, allocations: 27.89 kB / 473.6 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1069, allocations: 12 kB / 473.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001068/0.107, allocations: 136.6 kB / 473.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.107, allocations: 7.875 kB / 473.7 MB, free: 1.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.1073, allocations: 60 kB / 473.8 MB, free: 1.336 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: 3 ($whenCondition1,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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001289/0.1086, allocations: 1.038 MB / 474.8 MB, free: 272 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006932/0.1093, allocations: 287.2 kB / 475.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1093, allocations: 0 / 475.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.1096, allocations: 135.8 kB / 475.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.11, allocations: 55.83 kB / 475.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.1152, allocations: 2.921 MB / 478.2 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.1156, allocations: 0.748 MB / 478.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.53e-05/0.1157, allocations: 26.28 kB / 479 MB, free: 11.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001293/0.1158, allocations: 79.34 kB / 479.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1158, allocations: 0 / 479.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.1435, allocations: 5.512 MB / 484.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.03, allocations: 7.797 kB / 484.6 MB, free: 6.418 MB / 350.1 MB " [Timeout remaining time 649] (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.720599027001299] Failed to read output from testmodel.py, exit status != 0: 11.186112088966183 11.209399361000001 11.11279273 Calling exit ...