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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 106 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 190.5 kB / 17.29 MB, free: 5.48 MB / 14.72 MB 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 / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04192/0.04192, allocations: 8.113 MB / 278.6 MB, free: 3.957 MB / 222.1 MB 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.001498/0.001498, allocations: 68.52 kB / 338.6 MB, free: 7.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.23, allocations: 48.28 MB / 386.9 MB, free: 51.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003555/0.2336, allocations: 2.391 MB / 389.3 MB, free: 49.92 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.2346, allocations: 0.6414 MB / 389.9 MB, free: 49.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.2347, allocations: 4.438 kB / 390 MB, free: 49.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.2349, allocations: 35.88 kB / 390 MB, free: 49.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000136/0.235, allocations: 71.06 kB / 390.1 MB, free: 49.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.2352, allocations: 69.33 kB / 390.1 MB, free: 49.35 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.2355, allocations: 299.5 kB / 390.4 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.2357, allocations: 101.5 kB / 390.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.2358, allocations: 110.4 kB / 390.6 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.236, allocations: 127 kB / 390.7 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.912e-05/0.236, allocations: 23.12 kB / 390.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.377e-05/0.236, allocations: 23.25 kB / 390.8 MB, free: 49.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.951e-05/0.2361, allocations: 49.31 kB / 390.8 MB, free: 49.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.2362, allocations: 129.5 kB / 391 MB, free: 48.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.2365, allocations: 280.1 kB / 391.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2366, allocations: 0 / 391.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2366, allocations: 1.844 kB / 391.2 MB, free: 48.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2366, allocations: 0 / 391.2 MB, free: 48.83 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.0009259/0.2375, allocations: 0.5733 MB / 391.8 MB, free: 48.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2376, allocations: 10.16 kB / 391.8 MB, free: 48.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.2376, allocations: 26.5 kB / 391.9 MB, free: 48.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.238, allocations: 247.5 kB / 392.1 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.238, allocations: 20.05 kB / 392.1 MB, free: 48.08 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.2381, allocations: 31.72 kB / 392.1 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.2386, allocations: 225.6 kB / 392.4 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.2386, allocations: 2.062 kB / 392.4 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.2386, allocations: 10.34 kB / 392.4 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.2387, allocations: 7.281 kB / 392.4 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005694/0.2392, allocations: 197.6 kB / 392.6 MB, free: 47.92 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009695/0.2402, allocations: 0.7116 MB / 393.3 MB, free: 47.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000665/0.2409, allocations: 250.2 kB / 393.5 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002669/0.2412, allocations: 116.2 kB / 393.6 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.2412, allocations: 3.25 kB / 393.6 MB, free: 47.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003556/0.2416, allocations: 160.8 kB / 393.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.753e-06/0.2416, allocations: 1.562 kB / 393.8 MB, free: 47.21 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002257/0.2438, allocations: 1.113 MB / 394.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.2439, allocations: 55.64 kB / 395 MB, free: 46.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.2441, allocations: 186.1 kB / 395.2 MB, free: 46.33 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.2441, allocations: 36.61 kB / 395.2 MB, free: 46.29 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.656e-05/0.2442, allocations: 142.4 kB / 395.3 MB, free: 46.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.2443, allocations: 98.5 kB / 395.4 MB, free: 46.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.194e-05/0.2444, allocations: 49.86 kB / 395.5 MB, free: 46.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.072e-05/0.2445, allocations: 338.1 kB / 395.8 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002743/0.2447, allocations: 92.5 kB / 395.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002839/0.245, allocations: 128.1 kB / 396 MB, free: 45.65 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.2463, allocations: 0.5025 MB / 396.5 MB, free: 45.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2463, allocations: 2.469 kB / 396.5 MB, free: 45.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006906/0.247, allocations: 341.9 kB / 396.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.389e-05/0.2471, allocations: 41.28 kB / 396.9 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.2471, allocations: 5.359 kB / 396.9 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.2471, allocations: 1.375 kB / 396.9 MB, free: 45.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.2474, allocations: 68.89 kB / 397 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2474, allocations: 1.375 kB / 397 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.2476, allocations: 30.08 kB / 397 MB, free: 45.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.2477, allocations: 11.31 kB / 397 MB, free: 45.2 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.0001855/0.2479, allocations: 157.3 kB / 397.2 MB, free: 45.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.2479, allocations: 22 kB / 397.2 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.169e-05/0.248, allocations: 28.27 kB / 397.2 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.248, allocations: 3.562 kB / 397.2 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.248, allocations: 0.8438 kB / 397.2 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.248, allocations: 3.906 kB / 397.2 MB, free: 45.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.2491, allocations: 0.7172 MB / 397.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2491, allocations: 0 / 397.9 MB, free: 44.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.2494, allocations: 70.94 kB / 398 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.2494, allocations: 2 kB / 398 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.2495, allocations: 8.375 kB / 398 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.2495, allocations: 2.812 kB / 398 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2495, allocations: 5.125 kB / 398 MB, free: 44.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009279/0.2504, allocations: 0.51 MB / 398.5 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.803e-05/0.2505, allocations: 96.3 kB / 398.6 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.2505, allocations: 7.172 kB / 398.6 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.2507, allocations: 21.75 kB / 398.7 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.16e-05/0.2508, allocations: 25.06 kB / 398.7 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.2508, allocations: 14.59 kB / 398.7 MB, free: 44.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.832e-05/0.2509, allocations: 131.3 kB / 398.8 MB, free: 44.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2509, allocations: 4 kB / 398.8 MB, free: 44.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.2513, allocations: 56.5 kB / 398.9 MB, free: 44.04 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 9.73e-05/0.2514, allocations: 114.1 kB / 399 MB, free: 43.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.252, allocations: 294.5 kB / 399.3 MB, free: 43.81 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.252, allocations: 64 / 399.3 MB, free: 43.81 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.2524, allocations: 145.6 kB / 399.4 MB, free: 43.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004211/0.2528, allocations: 53.98 kB / 399.5 MB, free: 43.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.2553, allocations: 0.8613 MB / 400.3 MB, free: 43.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.2555, allocations: 0.7534 MB / 401.1 MB, free: 42.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.2557, allocations: 23.14 kB / 401.1 MB, free: 42.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.2557, allocations: 22.56 kB / 401.1 MB, free: 42.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2557, allocations: 0 / 401.1 MB, free: 42.57 MB / 318.1 MB Notification: Performance of Templates: time 0.007418/0.2632, allocations: 2.816 MB / 404 MB, free: 41.38 MB / 318.1 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 -s gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)