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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001431/0.001432, allocations: 186.4 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.346/1.346, allocations: 194.2 MB / 210.9 MB, free: 2.371 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03852/0.03852, allocations: 8.115 MB / 263.3 MB, free: 12.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001763/0.001763, allocations: 124.1 kB / 309.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002486, allocations: 71.91 kB / 365.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2277, allocations: 45.26 MB / 410.7 MB, free: 66.82 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003021/0.2308, allocations: 2.418 MB / 413.1 MB, free: 64.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008983/0.2317, allocations: 0.6086 MB / 413.7 MB, free: 63.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2319, allocations: 7.938 kB / 413.7 MB, free: 63.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.232, allocations: 31.77 kB / 413.7 MB, free: 63.73 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001167/0.2322, allocations: 59.53 kB / 413.8 MB, free: 63.67 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.2324, allocations: 55.94 kB / 413.8 MB, free: 63.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.2326, allocations: 286.7 kB / 414.1 MB, free: 63.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2328, allocations: 85.89 kB / 414.2 MB, free: 63.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.2329, allocations: 95.64 kB / 414.3 MB, free: 63.16 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.233, allocations: 119.5 kB / 414.4 MB, free: 63.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.157e-05/0.233, allocations: 16 kB / 414.4 MB, free: 63.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.418e-05/0.2331, allocations: 16 kB / 414.4 MB, free: 63.01 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.596e-05/0.2331, allocations: 51.83 kB / 414.5 MB, free: 62.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.647e-05/0.2332, allocations: 115.4 kB / 414.6 MB, free: 62.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.2334, allocations: 265.1 kB / 414.9 MB, free: 62.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2334, allocations: 4 kB / 414.9 MB, free: 62.58 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.2334, allocations: 0 / 414.9 MB, free: 62.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.2334, allocations: 0 / 414.9 MB, free: 62.58 MB / 314.7 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.0008282/0.2343, allocations: 0.5709 MB / 415.4 MB, free: 61.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.2343, allocations: 8.031 kB / 415.5 MB, free: 61.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.2344, allocations: 24.66 kB / 415.5 MB, free: 61.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001947/0.2346, allocations: 244.6 kB / 415.7 MB, free: 61.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.2346, allocations: 16.81 kB / 415.7 MB, free: 61.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.2346, allocations: 39.72 kB / 415.8 MB, free: 61.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.2351, allocations: 223.2 kB / 416 MB, free: 61.37 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.2351, allocations: 0 / 416 MB, free: 61.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.2351, allocations: 12 kB / 416 MB, free: 61.36 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2351, allocations: 8 kB / 416 MB, free: 61.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005264/0.2357, allocations: 193.6 kB / 416.2 MB, free: 61.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007841/0.2365, allocations: 0.7214 MB / 416.9 MB, free: 60.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006264/0.2371, allocations: 255.8 kB / 417.2 MB, free: 60.12 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.2374, allocations: 125.4 kB / 417.3 MB, free: 59.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.2374, allocations: 7.938 kB / 417.3 MB, free: 59.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000389/0.2378, allocations: 167.2 kB / 417.5 MB, free: 59.81 MB / 314.7 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.2378, allocations: 4 kB / 417.5 MB, free: 59.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002064/0.2399, allocations: 1.107 MB / 418.6 MB, free: 58.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/0.2399, allocations: 55.41 kB / 418.6 MB, free: 58.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.24, allocations: 187.4 kB / 418.8 MB, free: 58.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.2401, allocations: 29.7 kB / 418.8 MB, free: 58.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.2401, allocations: 148.6 kB / 419 MB, free: 58.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.2402, allocations: 94.55 kB / 419.1 MB, free: 58.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-05/0.2403, allocations: 49.7 kB / 419.1 MB, free: 58.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.597e-05/0.2403, allocations: 338.8 kB / 419.5 MB, free: 57.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.2406, allocations: 95.94 kB / 419.6 MB, free: 57.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.2409, allocations: 117.6 kB / 419.7 MB, free: 57.47 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.242, allocations: 0.4998 MB / 420.2 MB, free: 56.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.242, allocations: 0 / 420.2 MB, free: 56.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006201/0.2427, allocations: 343.8 kB / 420.5 MB, free: 56.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.2427, allocations: 37.7 kB / 420.5 MB, free: 56.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.2427, allocations: 3.984 kB / 420.5 MB, free: 56.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2427, allocations: 0 / 420.5 MB, free: 56.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.243, allocations: 67.89 kB / 420.6 MB, free: 56.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.243, allocations: 4 kB / 420.6 MB, free: 56.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.2432, allocations: 32 kB / 420.6 MB, free: 56.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.2433, allocations: 12 kB / 420.7 MB, free: 56.44 MB / 314.7 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.0002019/0.2435, allocations: 158.2 kB / 420.8 MB, free: 56.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.2435, allocations: 27.69 kB / 420.8 MB, free: 56.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.24e-05/0.2436, allocations: 30.64 kB / 420.9 MB, free: 56.22 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2436, allocations: 0 / 420.9 MB, free: 56.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2436, allocations: 0 / 420.9 MB, free: 56.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.2436, allocations: 4 kB / 420.9 MB, free: 56.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.2446, allocations: 0.7104 MB / 421.6 MB, free: 55.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.2446, allocations: 0 / 421.6 MB, free: 55.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000294/0.2449, allocations: 67.89 kB / 421.6 MB, free: 55.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.245, allocations: 4 kB / 421.7 MB, free: 55.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.245, allocations: 8.062 kB / 421.7 MB, free: 55.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.245, allocations: 4 kB / 421.7 MB, free: 55.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.245, allocations: 3.938 kB / 421.7 MB, free: 55.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004158/0.2492, allocations: 2.37 MB / 424 MB, free: 52.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.2492, allocations: 92.83 kB / 424.1 MB, free: 52.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.738e-05/0.2492, allocations: 15.94 kB / 424.1 MB, free: 52.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.2495, allocations: 24.02 kB / 424.2 MB, free: 52.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.547e-05/0.2495, allocations: 23.97 kB / 424.2 MB, free: 52.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.2496, allocations: 4 kB / 424.2 MB, free: 52.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.664e-05/0.2496, allocations: 140.6 kB / 424.3 MB, free: 52.53 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2497, allocations: 0 / 424.3 MB, free: 52.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003891/0.25, allocations: 88 kB / 424.4 MB, free: 52.45 MB / 314.7 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.0001054/0.2502, allocations: 107.2 kB / 424.5 MB, free: 52.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006396/0.2508, allocations: 303.1 kB / 424.8 MB, free: 52.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2508, allocations: 0 / 424.8 MB, free: 52.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002971/0.2511, allocations: 140.2 kB / 425 MB, free: 51.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.2516, allocations: 44.75 kB / 425 MB, free: 51.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.254, allocations: 1.165 MB / 426.2 MB, free: 50.63 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.2541, allocations: 0.748 MB / 426.9 MB, free: 49.85 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.2542, allocations: 34.27 kB / 426.9 MB, free: 49.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.404e-05/0.2543, allocations: 23.44 kB / 427 MB, free: 49.8 MB / 314.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2543, allocations: 0 / 427 MB, free: 49.8 MB / 314.7 MB Notification: Performance of Templates: time 0.005573/0.2599, allocations: 3.225 MB / 430.2 MB, free: 46.59 MB / 314.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (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)