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.009465/0.009465, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.002104/0.002104, allocations: 193 kB / 16.67 MB, free: 5.969 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.572/1.572, allocations: 205.1 MB / 222.5 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04224/0.04224, allocations: 8.109 MB / 278 MB, free: 13.07 MB / 238.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.001645/0.001645, allocations: 63.91 kB / 386.7 MB, free: 9.055 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3495, allocations: 48.3 MB / 435 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003871/0.3534, allocations: 2.395 MB / 437.4 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.3546, allocations: 0.638 MB / 438 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.3547, allocations: 3.531 kB / 438 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001551/0.3549, allocations: 39.41 kB / 438 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.355, allocations: 74.7 kB / 438.1 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.3553, allocations: 63.81 kB / 438.2 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.3557, allocations: 303.2 kB / 438.5 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.3559, allocations: 91.44 kB / 438.6 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.3561, allocations: 113.7 kB / 438.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.3563, allocations: 123.1 kB / 438.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.3563, allocations: 22 kB / 438.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.227e-05/0.3564, allocations: 23.38 kB / 438.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.039e-05/0.3564, allocations: 65.97 kB / 438.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.3566, allocations: 120.9 kB / 439 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.3569, allocations: 276.2 kB / 439.3 MB, free: 5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3569, allocations: 0 / 439.3 MB, free: 5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.357, allocations: 1.312 kB / 439.3 MB, free: 5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.357, allocations: 0 / 439.3 MB, free: 5 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.000987/0.358, allocations: 0.5832 MB / 439.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.358, allocations: 8.562 kB / 439.9 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.41e-05/0.3581, allocations: 29.91 kB / 439.9 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.3584, allocations: 247.2 kB / 440.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.3584, allocations: 16.72 kB / 440.2 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.87e-05/0.3585, allocations: 25.56 kB / 440.2 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.359, allocations: 223.7 kB / 440.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.359, allocations: 11.95 kB / 440.4 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.359, allocations: 5.25 kB / 440.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3591, allocations: 5.812 kB / 440.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005649/0.3596, allocations: 193.3 kB / 440.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.3606, allocations: 0.7157 MB / 441.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000806/0.3615, allocations: 246.2 kB / 441.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.3618, allocations: 120.1 kB / 441.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.3619, allocations: 3.641 kB / 441.7 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.3623, allocations: 166.3 kB / 441.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.3623, allocations: 0 / 441.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002454/0.3648, allocations: 1.129 MB / 443 MB, free: 2.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.3648, allocations: 58.8 kB / 443.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.365, allocations: 178.6 kB / 443.2 MB, free: 2.438 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.365, allocations: 32.45 kB / 443.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.894e-05/0.3651, allocations: 142.9 kB / 443.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.3652, allocations: 103.7 kB / 443.5 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.3653, allocations: 52.23 kB / 443.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.916e-05/0.3654, allocations: 331.8 kB / 443.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.3657, allocations: 95.36 kB / 444 MB, free: 1.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.366, allocations: 131.9 kB / 444.1 MB, free: 1.754 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/0.3674, allocations: 0.5089 MB / 444.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3674, allocations: 0 / 444.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007066/0.3681, allocations: 333.5 kB / 444.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.3682, allocations: 37.52 kB / 445 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.3682, allocations: 1.094 kB / 445 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.3682, allocations: 6.5 kB / 445 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000298/0.3685, allocations: 72.03 kB / 445 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.3685, allocations: 2.891 kB / 445 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/0.3687, allocations: 22.92 kB / 445.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3688, allocations: 10.91 kB / 445.1 MB, free: 1.309 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.00019/0.369, allocations: 168.4 kB / 445.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.298e-05/0.369, allocations: 26.23 kB / 445.3 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.907e-05/0.3691, allocations: 28.86 kB / 445.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3691, allocations: 2.844 kB / 445.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3691, allocations: 1.625 kB / 445.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3691, allocations: 5.453 kB / 445.3 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.3702, allocations: 0.7055 MB / 446 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.3703, allocations: 1.281 kB / 446 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.3706, allocations: 74.42 kB / 446.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.3706, allocations: 1.594 kB / 446.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.3706, allocations: 8.094 kB / 446.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3706, allocations: 1.406 kB / 446.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3706, allocations: 1.781 kB / 446.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.3716, allocations: 0.5006 MB / 446.6 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.423e-05/0.3717, allocations: 100 kB / 446.7 MB, free: 264 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.3717, allocations: 16.06 kB / 446.7 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.372, allocations: 25.67 kB / 446.7 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.789e-05/0.3721, allocations: 32.16 kB / 446.8 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.3721, allocations: 11.03 kB / 446.8 MB, free: 228 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.701e-05/0.3722, allocations: 130.7 kB / 446.9 MB, free: 136 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3722, allocations: 0 / 446.9 MB, free: 136 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.3725, allocations: 61.98 kB / 447 MB, free: 128 kB / 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.762e-05/0.3726, allocations: 105.6 kB / 447.1 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007189/0.3734, allocations: 302.2 kB / 447.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3734, allocations: 0 / 447.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.3737, allocations: 134.3 kB / 447.5 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000452/0.3742, allocations: 59.11 kB / 447.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.3767, allocations: 0.8607 MB / 448.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.3771, allocations: 0.7496 MB / 449.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3772, allocations: 25.12 kB / 449.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.436e-05/0.3773, allocations: 25.5 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3773, allocations: 1.094 kB / 449.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of Templates: time 0.006512/0.3838, allocations: 2.866 MB / 452.1 MB, free: 13.23 MB / 334.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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)