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.001486/0.001486, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.001477/0.001477, allocations: 165 kB / 22.46 MB, free: 5.359 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.413/1.413, allocations: 158.6 MB / 184.2 MB, free: 6.406 MB / 174.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.04659/0.04659, allocations: 6.398 MB / 242.9 MB, free: 12.77 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: 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 2.194e-06/2.194e-06, allocations: 0 / 360.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.916e-05/3.136e-05, allocations: 2.281 kB / 360.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002924/0.002955, allocations: 2.298 MB / 362.6 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.003995, allocations: 0.6047 MB / 363.2 MB, free: 8.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00019/0.004185, allocations: 7.938 kB / 363.2 MB, free: 8.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.004336, allocations: 43.53 kB / 363.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.004527, allocations: 75.34 kB / 363.3 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.004757, allocations: 63.89 kB / 363.4 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002978/0.005055, allocations: 298.6 kB / 363.7 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002081/0.005263, allocations: 66.34 kB / 363.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002238/0.005487, allocations: 171.5 kB / 363.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.005615, allocations: 99.73 kB / 364 MB, free: 7.336 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.917e-05/0.005654, allocations: 20 kB / 364 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.039e-05/0.005694, allocations: 28 kB / 364.1 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.482e-05/0.005739, allocations: 55.77 kB / 364.1 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.005857, allocations: 83.83 kB / 364.2 MB, free: 7.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.006126, allocations: 287 kB / 364.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.574e-06/0.006128, allocations: 0 / 364.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.00613, allocations: 0 / 364.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.006144, allocations: 4 kB / 364.5 MB, free: 6.867 MB / 286.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.000904/0.007048, allocations: 0.4993 MB / 365 MB, free: 6.332 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.007082, allocations: 15.98 kB / 365 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.866e-05/0.007151, allocations: 32.73 kB / 365 MB, free: 6.285 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.00746, allocations: 183.3 kB / 365.2 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.007481, allocations: 16.88 kB / 365.2 MB, free: 6.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/0.007534, allocations: 32.31 kB / 365.3 MB, free: 6.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.00802, allocations: 216.6 kB / 365.5 MB, free: 5.816 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.008041, allocations: 4.188 kB / 365.5 MB, free: 5.812 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.008064, allocations: 8.375 kB / 365.5 MB, free: 5.805 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.008073, allocations: 7.938 kB / 365.5 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005279/0.008601, allocations: 197.8 kB / 365.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008371/0.009438, allocations: 0.568 MB / 366.3 MB, free: 4.996 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006878/0.01013, allocations: 230 kB / 366.5 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/0.01039, allocations: 116.7 kB / 366.6 MB, free: 4.648 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.01041, allocations: 4 kB / 366.6 MB, free: 4.645 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.01076, allocations: 173.3 kB / 366.8 MB, free: 4.465 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.753e-06/0.01077, allocations: 0 / 366.8 MB, free: 4.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.0022/0.01297, allocations: 0.9733 MB / 367.7 MB, free: 3.441 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.859e-05/0.013, allocations: 55.41 kB / 367.8 MB, free: 3.375 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.0131, allocations: 166.5 kB / 368 MB, free: 3.203 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.01312, allocations: 33.7 kB / 368 MB, free: 3.164 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.973e-05/0.01318, allocations: 144.7 kB / 368.1 MB, free: 3.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.998e-05/0.01323, allocations: 99.12 kB / 368.2 MB, free: 2.922 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.0133, allocations: 57.7 kB / 368.3 MB, free: 2.859 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.01336, allocations: 330.8 kB / 368.6 MB, free: 2.527 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.01364, allocations: 121.6 kB / 368.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/0.01391, allocations: 143.2 kB / 368.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.01507, allocations: 0.523 MB / 369.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.01507, allocations: 0 / 369.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000629/0.0157, allocations: 370.2 kB / 369.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.01573, allocations: 29.7 kB / 369.8 MB, free: 1.289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.01573, allocations: 4 kB / 369.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.01575, allocations: 0 / 369.8 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002759/0.01603, allocations: 67.95 kB / 369.8 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.01604, allocations: 15.91 kB / 369.9 MB, free: 1.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.01625, allocations: 23.97 kB / 369.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.01627, allocations: 4 kB / 369.9 MB, free: 1.176 MB / 286.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.0002017/0.01647, allocations: 160.9 kB / 370 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-05/0.01651, allocations: 23.84 kB / 370.1 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.418e-05/0.01657, allocations: 26.64 kB / 370.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.01658, allocations: 4 kB / 370.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.01658, allocations: 0 / 370.1 MB, free: 0.957 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.01659, allocations: 3.938 kB / 370.1 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009829/0.01757, allocations: 0.6096 MB / 370.7 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.01758, allocations: 0 / 370.7 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.01787, allocations: 71.89 kB / 370.8 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.01787, allocations: 0 / 370.8 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.01789, allocations: 8 kB / 370.8 MB, free: 224 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.01789, allocations: 7.969 kB / 370.8 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.0179, allocations: 7.938 kB / 370.8 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.01894, allocations: 0.5027 MB / 371.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.01898, allocations: 15.84 kB / 371.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.01902, allocations: 8 kB / 371.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.01925, allocations: 27.95 kB / 371.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.01934, allocations: 27.95 kB / 371.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.01936, allocations: 12 kB / 371.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.01947, allocations: 128.4 kB / 371.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01947, allocations: 0 / 371.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.01978, allocations: 60 kB / 371.6 MB, free: 15.4 MB / 302.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.000146/0.01993, allocations: 111.2 kB / 371.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007576/0.02068, allocations: 329.4 kB / 372 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.02069, allocations: 0 / 372 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003385/0.02103, allocations: 119.9 kB / 372.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.02148, allocations: 57.88 kB / 372.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.02407, allocations: 0.7582 MB / 372.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.0243, allocations: 142.1 kB / 373.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.02442, allocations: 21.94 kB / 373.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.702e-05/0.02449, allocations: 24.5 kB / 373.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.02449, allocations: 0 / 373.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of Templates: time 0.007724/0.03222, allocations: 2.867 MB / 376 MB, free: 10.96 MB / 302.1 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.204670660197735] Failed to read output from testmodel.py, exit status != 0: 0.0400320403277874 0.05678644100000001 0.047485276 Calling exit ...