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.001336/0.001336, allocations: 117.7 kB / 17.13 MB, free: 5.758 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.001403/0.001403, allocations: 194.1 kB / 20.08 MB, free: 2.848 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.454/1.454, allocations: 207.6 MB / 230.5 MB, free: 4.031 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.05585/0.05585, allocations: 8.203 MB / 290.5 MB, free: 8.121 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.002352/0.002352, allocations: 75.88 kB / 406.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2337/0.2361, allocations: 50.9 MB / 457.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003023/0.2391, allocations: 2.406 MB / 459.7 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008353/0.2399, allocations: 0.6432 MB / 460.3 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.24, allocations: 4.031 kB / 460.3 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.2402, allocations: 34.5 kB / 460.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.2403, allocations: 80.33 kB / 460.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.2405, allocations: 66.47 kB / 460.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002428/0.2408, allocations: 299.5 kB / 460.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.2409, allocations: 73.7 kB / 460.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.241, allocations: 116.9 kB / 461 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.2412, allocations: 124.6 kB / 461.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.022e-05/0.2413, allocations: 22 kB / 461.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.659e-05/0.2413, allocations: 23.38 kB / 461.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.626e-05/0.2413, allocations: 54.64 kB / 461.2 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.057e-05/0.2414, allocations: 122.6 kB / 461.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.2417, allocations: 281.5 kB / 461.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2417, allocations: 0 / 461.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2417, allocations: 0 / 461.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2417, allocations: 5.344 kB / 461.6 MB, free: 0.6562 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.0008234/0.2425, allocations: 0.5738 MB / 462.2 MB, free: 124 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.2425, allocations: 9.312 kB / 462.2 MB, free: 124 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.2426, allocations: 30.78 kB / 462.2 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2429, allocations: 245.2 kB / 462.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.243, allocations: 21.41 kB / 462.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.243, allocations: 32.33 kB / 462.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.2435, allocations: 217.6 kB / 462.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.3e-05/0.2436, allocations: 4 kB / 462.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.2436, allocations: 10.42 kB / 462.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.2436, allocations: 4.75 kB / 462.7 MB, free: 15.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005827/0.2442, allocations: 200.4 kB / 462.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.2453, allocations: 0.7119 MB / 463.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007461/0.246, allocations: 237.6 kB / 463.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002913/0.2463, allocations: 117.2 kB / 464 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.2463, allocations: 2.406 kB / 464 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004367/0.2468, allocations: 169.4 kB / 464.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.573e-06/0.2468, allocations: 0 / 464.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002551/0.2493, allocations: 1.117 MB / 465.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.2494, allocations: 62.69 kB / 465.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.2496, allocations: 179.1 kB / 465.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.2496, allocations: 35.7 kB / 465.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.2497, allocations: 139.3 kB / 465.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.658e-05/0.2498, allocations: 110.7 kB / 465.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.2499, allocations: 49.08 kB / 465.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.25, allocations: 335.9 kB / 466.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003037/0.2503, allocations: 92.11 kB / 466.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002859/0.2506, allocations: 127.6 kB / 466.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.2519, allocations: 0.5033 MB / 466.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.2519, allocations: 1.188 kB / 466.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007436/0.2526, allocations: 336.2 kB / 467.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.2527, allocations: 39 kB / 467.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2527, allocations: 5.141 kB / 467.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2527, allocations: 2.406 kB / 467.2 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003262/0.253, allocations: 71.11 kB / 467.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.253, allocations: 2.594 kB / 467.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.2532, allocations: 28.16 kB / 467.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.2532, allocations: 10.78 kB / 467.3 MB, free: 12.31 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: 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.0001955/0.2534, allocations: 158.1 kB / 467.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.2535, allocations: 29.88 kB / 467.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.233e-05/0.2535, allocations: 26.5 kB / 467.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2535, allocations: 2.688 kB / 467.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2535, allocations: 0 / 467.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.2536, allocations: 5.234 kB / 467.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.2548, allocations: 0.7065 MB / 468.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.2548, allocations: 0 / 468.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003073/0.2551, allocations: 70.3 kB / 468.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2551, allocations: 2.25 kB / 468.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.2551, allocations: 6.938 kB / 468.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2551, allocations: 1.406 kB / 468.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.2551, allocations: 9.328 kB / 468.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2562, allocations: 0.5077 MB / 468.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.518e-05/0.2563, allocations: 95.47 kB / 469 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/0.2563, allocations: 14.28 kB / 469 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.2566, allocations: 27.42 kB / 469 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.2567, allocations: 23.5 kB / 469 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.2567, allocations: 14 kB / 469 MB, free: 11.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001045/0.2568, allocations: 128.7 kB / 469.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2568, allocations: 4 kB / 469.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.2571, allocations: 61.22 kB / 469.2 MB, free: 10.92 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: 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.0001122/0.2572, allocations: 108.7 kB / 469.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006938/0.2579, allocations: 282.5 kB / 469.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2579, allocations: 5.312 kB / 469.6 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.2582, allocations: 127.8 kB / 469.7 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.2587, allocations: 46.86 kB / 469.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.2612, allocations: 0.9023 MB / 470.7 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004137/0.2616, allocations: 0.7503 MB / 471.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.254e-05/0.2616, allocations: 23.22 kB / 471.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2616, allocations: 0 / 471.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of Templates: time 0.005493/0.2671, allocations: 3.064 MB / 474.5 MB, free: 6.777 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: 7.299197176937014] Failed to read output from testmodel.py, exit status != 0: 0.27507500210776925 0.28914007799999997 0.044451228 Calling exit ...