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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 113.2 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001348, allocations: 193.2 kB / 20.03 MB, free: 3.082 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.389/1.389, allocations: 205.1 MB / 227.9 MB, free: 4.391 MB / 174.1 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.04973/0.04973, allocations: 8.114 MB / 285.4 MB, free: 11 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.002186/0.002186, allocations: 72.38 kB / 396 MB, free: 6.805 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2288, allocations: 48.31 MB / 444.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002964/0.2318, allocations: 2.39 MB / 446.8 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008178/0.2326, allocations: 0.6401 MB / 447.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.2328, allocations: 7.688 kB / 447.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.2329, allocations: 29.77 kB / 447.4 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.233, allocations: 81.34 kB / 447.5 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.2332, allocations: 60.47 kB / 447.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000287/0.2335, allocations: 306.6 kB / 447.9 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.2337, allocations: 98.14 kB / 448 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.2339, allocations: 110.9 kB / 448.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.234, allocations: 121.8 kB / 448.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.2341, allocations: 26.83 kB / 448.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.074e-05/0.2341, allocations: 23.09 kB / 448.2 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.2342, allocations: 53.73 kB / 448.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.2343, allocations: 125.5 kB / 448.4 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.2346, allocations: 278.4 kB / 448.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2347, allocations: 0.5312 kB / 448.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2347, allocations: 0 / 448.7 MB, free: 5.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.2347, allocations: 0.5938 kB / 448.7 MB, free: 5.984 MB / 318.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.0009169/0.2356, allocations: 0.5828 MB / 449.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2356, allocations: 9.875 kB / 449.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.2357, allocations: 30.89 kB / 449.3 MB, free: 5.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.236, allocations: 247 kB / 449.5 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.236, allocations: 13.56 kB / 449.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.2361, allocations: 24.05 kB / 449.6 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004923/0.2366, allocations: 228.3 kB / 449.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2366, allocations: 2.016 kB / 449.8 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.2366, allocations: 9.219 kB / 449.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.2366, allocations: 6.266 kB / 449.8 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005602/0.2372, allocations: 195.6 kB / 450 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.2381, allocations: 0.7196 MB / 450.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006727/0.2387, allocations: 245.6 kB / 451 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.239, allocations: 120.4 kB / 451.1 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2391, allocations: 3.359 kB / 451.1 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003627/0.2394, allocations: 163.4 kB / 451.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.613e-06/0.2395, allocations: 4 kB / 451.3 MB, free: 4.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002214/0.2417, allocations: 1.127 MB / 452.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2417, allocations: 57.58 kB / 452.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.2418, allocations: 177.6 kB / 452.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.2419, allocations: 39.14 kB / 452.7 MB, free: 3.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.2419, allocations: 140.2 kB / 452.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.347e-05/0.242, allocations: 107.3 kB / 452.9 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.499e-05/0.2421, allocations: 52.38 kB / 452.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.843e-05/0.2421, allocations: 331.6 kB / 453.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/0.2424, allocations: 92.86 kB / 453.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.2427, allocations: 131 kB / 453.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.244, allocations: 0.5085 MB / 454 MB, free: 2.496 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.244, allocations: 0 / 454 MB, free: 2.496 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006792/0.2447, allocations: 332.3 kB / 454.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.2447, allocations: 37.95 kB / 454.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2447, allocations: 0 / 454.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.2448, allocations: 3.438 kB / 454.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.2451, allocations: 67.89 kB / 454.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.2451, allocations: 2.406 kB / 454.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.2453, allocations: 27.23 kB / 454.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.056e-05/0.2453, allocations: 10.97 kB / 454.5 MB, free: 2.297 MB / 318.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 >= 1e-15 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 >= 1e-15 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.0001579/0.2455, allocations: 161.2 kB / 454.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.2455, allocations: 25.67 kB / 454.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.366e-05/0.2456, allocations: 31.8 kB / 454.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.2456, allocations: 4.219 kB / 454.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2456, allocations: 0 / 454.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.2456, allocations: 1.828 kB / 454.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001039/0.2467, allocations: 0.7091 MB / 455.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-06/0.2467, allocations: 0.6562 kB / 455.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003106/0.247, allocations: 67.25 kB / 455.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.247, allocations: 1.25 kB / 455.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.247, allocations: 7.859 kB / 455.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-06/0.247, allocations: 1.812 kB / 455.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.247, allocations: 1.125 kB / 455.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009296/0.248, allocations: 0.5128 MB / 456 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.868e-05/0.248, allocations: 94.72 kB / 456.1 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.6e-05/0.2481, allocations: 18.91 kB / 456.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.2483, allocations: 23.48 kB / 456.1 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.2484, allocations: 26.73 kB / 456.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.2484, allocations: 14.47 kB / 456.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.631e-05/0.2485, allocations: 132.5 kB / 456.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2485, allocations: 3.938 kB / 456.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002959/0.2488, allocations: 61.16 kB / 456.4 MB, free: 1.07 MB / 318.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 8.187e-05/0.2489, allocations: 108.8 kB / 456.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006434/0.2495, allocations: 300.4 kB / 456.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2495, allocations: 0 / 456.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.2498, allocations: 134.8 kB / 456.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.2503, allocations: 47.56 kB / 456.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.2525, allocations: 0.9091 MB / 457.8 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.2529, allocations: 0.7509 MB / 458.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.027e-05/0.253, allocations: 21.88 kB / 458.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.253, allocations: 0 / 458.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of Templates: time 0.005155/0.2582, allocations: 3.039 MB / 461.7 MB, free: 13.74 MB / 334.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: 6.715132960118353] Failed to read output from testmodel.py, exit status != 0: 0.26515676686540246 0.27806958099999995 0.040789612 Calling exit ...