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.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.00133/0.00133, allocations: 113.8 kB / 17.08 MB, free: 5.789 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.001281/0.001281, allocations: 193.2 kB / 20.03 MB, free: 2.906 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.395/1.395, allocations: 205.1 MB / 227.9 MB, free: 4.305 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.05018/0.05018, allocations: 8.115 MB / 285.4 MB, free: 10.94 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_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") [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.002372/0.002372, allocations: 78.39 kB / 396.1 MB, free: 6.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2332, allocations: 48.31 MB / 444.4 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003461/0.2367, allocations: 2.399 MB / 446.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009588/0.2377, allocations: 0.6855 MB / 447.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.2378, allocations: 8.781 kB / 447.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.238, allocations: 42.59 kB / 447.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.2381, allocations: 72.12 kB / 447.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.2384, allocations: 67.58 kB / 447.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.2387, allocations: 301.8 kB / 447.9 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.2389, allocations: 101.8 kB / 448 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001609/0.239, allocations: 111.9 kB / 448.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001645/0.2392, allocations: 131.8 kB / 448.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.848e-05/0.2393, allocations: 22.59 kB / 448.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.268e-05/0.2393, allocations: 23.62 kB / 448.3 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.579e-05/0.2394, allocations: 55.12 kB / 448.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.2395, allocations: 127.3 kB / 448.5 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003681/0.2399, allocations: 276 kB / 448.8 MB, free: 5.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2399, allocations: 4.5 kB / 448.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2399, allocations: 0 / 448.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.2399, allocations: 0.5938 kB / 448.8 MB, free: 5.883 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.0009277/0.2408, allocations: 0.5887 MB / 449.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2409, allocations: 14.48 kB / 449.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.837e-05/0.2409, allocations: 30.05 kB / 449.4 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.2412, allocations: 251 kB / 449.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.2412, allocations: 14 kB / 449.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.2413, allocations: 24.84 kB / 449.7 MB, free: 5.102 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004894/0.2418, allocations: 224.5 kB / 449.9 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.2418, allocations: 6.031 kB / 449.9 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.2419, allocations: 10.75 kB / 449.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.2419, allocations: 5.5 kB / 449.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005528/0.2424, allocations: 202.2 kB / 450.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008837/0.2433, allocations: 0.6607 MB / 450.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.244, allocations: 253 kB / 451 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.2443, allocations: 121.8 kB / 451.1 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.2443, allocations: 3.375 kB / 451.2 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003944/0.2448, allocations: 174 kB / 451.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.743e-06/0.2448, allocations: 0 / 451.3 MB, free: 4.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002455/0.2472, allocations: 1.205 MB / 452.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.2473, allocations: 57.17 kB / 452.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.2474, allocations: 180.1 kB / 452.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.2474, allocations: 33.33 kB / 452.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.2475, allocations: 142.3 kB / 452.9 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.2476, allocations: 116.8 kB / 453 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/0.2476, allocations: 55.25 kB / 453.1 MB, free: 3.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.2477, allocations: 340.1 kB / 453.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003069/0.248, allocations: 96.5 kB / 453.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.2483, allocations: 132.8 kB / 453.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.2497, allocations: 0.5459 MB / 454.2 MB, free: 2.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.2497, allocations: 0 / 454.2 MB, free: 2.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007369/0.2504, allocations: 358.8 kB / 454.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.2505, allocations: 36.91 kB / 454.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2505, allocations: 1.062 kB / 454.6 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2505, allocations: 6.156 kB / 454.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003115/0.2508, allocations: 76.38 kB / 454.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.2508, allocations: 2.375 kB / 454.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/0.2511, allocations: 27.45 kB / 454.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.38e-05/0.2511, allocations: 12.55 kB / 454.7 MB, free: 2.156 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: 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.0001752/0.2513, allocations: 176.4 kB / 454.9 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.2513, allocations: 27.48 kB / 454.9 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.961e-05/0.2514, allocations: 28.36 kB / 454.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2514, allocations: 4.062 kB / 454.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.2514, allocations: 0.5625 kB / 454.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2514, allocations: 1.734 kB / 454.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.2526, allocations: 0.7872 MB / 455.7 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2526, allocations: 0 / 455.7 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.253, allocations: 77 kB / 455.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.253, allocations: 2.781 kB / 455.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.253, allocations: 7.797 kB / 455.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.253, allocations: 6.219 kB / 455.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.253, allocations: 5.125 kB / 455.8 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009746/0.254, allocations: 0.5267 MB / 456.4 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.689e-05/0.254, allocations: 95.5 kB / 456.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.2541, allocations: 6.938 kB / 456.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.2543, allocations: 22.92 kB / 456.5 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.887e-05/0.2544, allocations: 36.19 kB / 456.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.2544, allocations: 11.2 kB / 456.5 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.09e-05/0.2545, allocations: 133.2 kB / 456.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2545, allocations: 0 / 456.7 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.2548, allocations: 63.66 kB / 456.7 MB, free: 0.8359 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: 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 8.521e-05/0.2549, allocations: 115.5 kB / 456.8 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006993/0.2556, allocations: 323.8 kB / 457.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2557, allocations: 2.156 kB / 457.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.256, allocations: 146.1 kB / 457.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.2564, allocations: 55.8 kB / 457.3 MB, free: 472 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.2589, allocations: 0.909 MB / 458.2 MB, free: 15.81 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.2593, allocations: 0.7532 MB / 459 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.301e-05/0.2594, allocations: 27.44 kB / 459 MB, free: 15.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2594, allocations: 1.344 kB / 459 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Templates: time 0.005344/0.2648, allocations: 3.191 MB / 462.2 MB, free: 13.39 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile [Timeout 660] (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 & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.690270273946226] Failed to read output from testmodel.py, exit status != 0: 0.27160385996103287 0.28473923599999995 0.0421749 Calling exit ...