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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 102.6 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 207.6 MB / 231.9 MB, free: 3.234 MB / 174.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0535/0.0535, allocations: 8.198 MB / 292.2 MB, free: 7.102 MB / 238.1 MB [Timeout remaining time 90] 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=500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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.002226/0.002226, allocations: 71.89 kB / 408.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2485, allocations: 50.89 MB / 459.8 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003013/0.2515, allocations: 2.432 MB / 462.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2525, allocations: 0.6892 MB / 462.9 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2526, allocations: 8.062 kB / 462.9 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.2528, allocations: 31.78 kB / 463 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.2529, allocations: 75.58 kB / 463 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.2532, allocations: 77.45 kB / 463.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.2536, allocations: 295.6 kB / 463.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.2537, allocations: 74.41 kB / 463.5 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.2538, allocations: 114.3 kB / 463.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.254, allocations: 132.6 kB / 463.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.2541, allocations: 23.5 kB / 463.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.82e-05/0.2541, allocations: 24.41 kB / 463.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.387e-05/0.2541, allocations: 54.33 kB / 463.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.2543, allocations: 128 kB / 463.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002549/0.2545, allocations: 280.7 kB / 464.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2545, allocations: 1.375 kB / 464.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2545, allocations: 0 / 464.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.2545, allocations: 0 / 464.2 MB, free: 0.5312 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.0008869/0.2554, allocations: 0.5844 MB / 464.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.2554, allocations: 13.2 kB / 464.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.838e-05/0.2555, allocations: 34.64 kB / 464.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.2559, allocations: 244.6 kB / 465.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.2559, allocations: 17.06 kB / 465.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.256, allocations: 24.53 kB / 465.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.2565, allocations: 225.5 kB / 465.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.2565, allocations: 9.047 kB / 465.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.2566, allocations: 10.38 kB / 465.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2566, allocations: 12.62 kB / 465.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005906/0.2572, allocations: 191.5 kB / 465.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.2583, allocations: 0.6675 MB / 466.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007428/0.259, allocations: 240.9 kB / 466.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.2594, allocations: 110.2 kB / 466.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2594, allocations: 3.031 kB / 466.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004126/0.2598, allocations: 176 kB / 466.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.723e-06/0.2598, allocations: 0 / 466.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002794/0.2626, allocations: 1.196 MB / 467.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.2626, allocations: 62.86 kB / 468 MB, free: 13.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.2628, allocations: 188.4 kB / 468.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.044e-05/0.2628, allocations: 36.39 kB / 468.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.263, allocations: 139.1 kB / 468.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.71e-05/0.263, allocations: 111.1 kB / 468.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.2631, allocations: 57.73 kB / 468.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.2633, allocations: 329.1 kB / 468.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000307/0.2636, allocations: 101.3 kB / 468.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003512/0.264, allocations: 137.5 kB / 469.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.2654, allocations: 0.5458 MB / 469.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2654, allocations: 0 / 469.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008129/0.2662, allocations: 364.3 kB / 470 MB, free: 12.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.2663, allocations: 31.3 kB / 470 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.2663, allocations: 5.375 kB / 470 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.2663, allocations: 1.438 kB / 470 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/0.2666, allocations: 75.61 kB / 470.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2666, allocations: 2.719 kB / 470.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.2669, allocations: 32.38 kB / 470.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.395e-05/0.2669, allocations: 12.16 kB / 470.1 MB, free: 12.12 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 >= 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.0002283/0.2671, allocations: 174.4 kB / 470.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.342e-05/0.2672, allocations: 18.47 kB / 470.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.119e-05/0.2672, allocations: 33.98 kB / 470.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.2672, allocations: 3.406 kB / 470.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.2672, allocations: 0 / 470.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2673, allocations: 1.156 kB / 470.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001392/0.2686, allocations: 0.7941 MB / 471.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2686, allocations: 1.125 kB / 471.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.269, allocations: 68.3 kB / 471.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.269, allocations: 2.188 kB / 471.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.269, allocations: 6.312 kB / 471.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.269, allocations: 10.27 kB / 471.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.269, allocations: 1.188 kB / 471.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.2701, allocations: 0.5248 MB / 471.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.865e-05/0.2702, allocations: 102.4 kB / 471.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.2702, allocations: 11.66 kB / 471.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.2705, allocations: 22.75 kB / 471.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.044e-05/0.2705, allocations: 25 kB / 471.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.2706, allocations: 14.28 kB / 471.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001282/0.2707, allocations: 141 kB / 472.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2707, allocations: 1.125 kB / 472.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.271, allocations: 63.44 kB / 472.1 MB, free: 10.65 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: 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 0.0001178/0.2711, allocations: 107.3 kB / 472.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007374/0.2719, allocations: 311.9 kB / 472.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2719, allocations: 4.062 kB / 472.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.2722, allocations: 132.9 kB / 472.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.2726, allocations: 52.7 kB / 472.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.2753, allocations: 0.9144 MB / 473.6 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.2757, allocations: 0.7523 MB / 474.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.434e-05/0.2758, allocations: 27.44 kB / 474.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2758, allocations: 0 / 474.4 MB, free: 8.879 MB / 334.1 MB Notification: Performance of Templates: time 0.005765/0.2815, allocations: 3.21 MB / 477.6 MB, free: 5.68 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]