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.00076/0.00076, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0007335/0.0007335, allocations: 178.2 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.7899/0.7899, allocations: 158.6 MB / 185 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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.02432/0.02432, allocations: 6.408 MB / 243.6 MB, free: 8.996 MB / 234.7 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: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 361.1 MB, free: 3.938 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.625e-05, allocations: 2.281 kB / 361.1 MB, free: 3.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002026/0.002042, allocations: 2.295 MB / 363.3 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007685/0.002811, allocations: 0.6125 MB / 364 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.002921, allocations: 7.938 kB / 364 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.003027, allocations: 35.59 kB / 364 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.003135, allocations: 75.33 kB / 364.1 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.003317, allocations: 67.84 kB / 364.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.003511, allocations: 302.6 kB / 364.4 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.003643, allocations: 70.28 kB / 364.5 MB, free: 460 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.003766, allocations: 175.6 kB / 364.7 MB, free: 284 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.681e-05/0.003853, allocations: 95.75 kB / 364.8 MB, free: 188 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.003882, allocations: 24 kB / 364.8 MB, free: 164 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.136e-05/0.003904, allocations: 20 kB / 364.8 MB, free: 144 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.003932, allocations: 55.77 kB / 364.9 MB, free: 88 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.487e-05/0.004007, allocations: 95.78 kB / 365 MB, free: 15.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.004248, allocations: 283 kB / 365.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.00425, allocations: 0 / 365.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.004251, allocations: 0 / 365.2 MB, free: 15.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.004256, allocations: 0 / 365.2 MB, free: 15.71 MB / 298.7 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.0006557/0.004911, allocations: 0.4993 MB / 365.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.004943, allocations: 15.98 kB / 365.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.004993, allocations: 28.75 kB / 365.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.005214, allocations: 187 kB / 366 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.00523, allocations: 16.88 kB / 366 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.005268, allocations: 36.3 kB / 366 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.005572, allocations: 216.6 kB / 366.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.005586, allocations: 8.188 kB / 366.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.005602, allocations: 4.375 kB / 366.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.005609, allocations: 11.94 kB / 366.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003001/0.005909, allocations: 193.8 kB / 366.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/0.006525, allocations: 0.5679 MB / 367 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.00694, allocations: 226.3 kB / 367.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.007094, allocations: 108.8 kB / 367.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.312e-05/0.007107, allocations: 4 kB / 367.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.007329, allocations: 175.1 kB / 367.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.007331, allocations: 0 / 367.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001311/0.008642, allocations: 0.9682 MB / 368.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.319e-05/0.008675, allocations: 59.34 kB / 368.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.901e-05/0.008774, allocations: 166.5 kB / 368.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.00879, allocations: 37.64 kB / 368.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.008853, allocations: 144.8 kB / 368.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.721e-05/0.0089, allocations: 103.1 kB / 369 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.516e-05/0.008955, allocations: 57.69 kB / 369 MB, free: 11.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.42e-05/0.009029, allocations: 326.8 kB / 369.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.009186, allocations: 121.6 kB / 369.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.009348, allocations: 147.2 kB / 369.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006973/0.01004, allocations: 0.5192 MB / 370.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.01005, allocations: 3.938 kB / 370.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004236/0.01047, allocations: 362.2 kB / 370.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.0105, allocations: 33.7 kB / 370.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.0105, allocations: 0 / 370.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.01052, allocations: 0 / 370.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.01074, allocations: 71.92 kB / 370.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.01075, allocations: 7.938 kB / 370.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.01089, allocations: 27.97 kB / 370.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.01091, allocations: 8 kB / 370.6 MB, free: 10.03 MB / 298.7 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.0001754/0.01108, allocations: 167.7 kB / 370.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.01111, allocations: 19.91 kB / 370.8 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.232e-05/0.01115, allocations: 26.64 kB / 370.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.01116, allocations: 4 kB / 370.9 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.01116, allocations: 0 / 370.9 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01117, allocations: 3.938 kB / 370.9 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008586/0.01202, allocations: 0.6099 MB / 371.5 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.01203, allocations: 0 / 371.5 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.01227, allocations: 75.83 kB / 371.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.01228, allocations: 0 / 371.5 MB, free: 9.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.01229, allocations: 11.98 kB / 371.6 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.0123, allocations: 0 / 371.6 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.0123, allocations: 8.062 kB / 371.6 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007553/0.01306, allocations: 0.5023 MB / 372.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.01308, allocations: 15.84 kB / 372.1 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.01311, allocations: 8 kB / 372.1 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.01326, allocations: 31.95 kB / 372.1 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.966e-05/0.01333, allocations: 27.95 kB / 372.1 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.01335, allocations: 11.94 kB / 372.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.769e-05/0.01343, allocations: 124.5 kB / 372.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01343, allocations: 0 / 372.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002936/0.01372, allocations: 63.98 kB / 372.3 MB, free: 8.254 MB / 298.7 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 9.998e-05/0.01382, allocations: 103.2 kB / 372.4 MB, free: 8.141 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.01437, allocations: 317.5 kB / 372.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.01437, allocations: 0 / 372.8 MB, free: 7.812 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.01462, allocations: 127.8 kB / 372.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.01501, allocations: 48.08 kB / 372.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.01683, allocations: 0.7872 MB / 373.7 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.01696, allocations: 142 kB / 373.8 MB, free: 6.664 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.968e-05/0.01704, allocations: 32.48 kB / 373.9 MB, free: 6.633 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.01704, allocations: 4 kB / 373.9 MB, free: 6.629 MB / 298.7 MB Notification: Performance of Templates: time 0.004523/0.02156, allocations: 3.135 MB / 377 MB, free: 3.504 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile [Timeout 660] (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.034140425734222] Failed to read output from testmodel.py, exit status != 0: 0.02573920227587223 0.039062667 0.033105337000000006 Calling exit ...