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) 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_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 105.4 kB / 16.41 MB, free: 6.488 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.001179/0.001179, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.286/1.286, 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.0432/0.0432, allocations: 8.112 MB / 278.7 MB, free: 3.945 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.001473/0.001473, allocations: 70.78 kB / 387.3 MB, free: 47.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06727/0.06876, allocations: 48.31 MB / 435.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002708/0.07151, allocations: 2.425 MB / 438.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00083/0.07236, allocations: 0.667 MB / 438.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.07248, allocations: 4 kB / 438.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.07262, allocations: 39.59 kB / 438.8 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.07274, allocations: 75.33 kB / 438.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002147/0.07296, allocations: 71.84 kB / 438.9 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.0732, allocations: 306.7 kB / 439.2 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.07338, allocations: 97.92 kB / 439.3 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.0735, allocations: 111.6 kB / 439.4 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.07362, allocations: 131.4 kB / 439.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.584e-05/0.07367, allocations: 24 kB / 439.6 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.857e-05/0.07371, allocations: 24 kB / 439.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.699e-05/0.07375, allocations: 59.78 kB / 439.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.539e-05/0.07384, allocations: 131.4 kB / 439.8 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.07407, allocations: 275 kB / 440.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.07408, allocations: 0 / 440.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.07409, allocations: 0 / 440.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.0741, allocations: 0 / 440.1 MB, free: 4.168 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.0008656/0.07497, allocations: 0.5864 MB / 440.6 MB, free: 3.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.075, allocations: 11.89 kB / 440.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.667e-05/0.07506, allocations: 28.66 kB / 440.7 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.0753, allocations: 243.9 kB / 440.9 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.07532, allocations: 12.81 kB / 440.9 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.07537, allocations: 28.28 kB / 441 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.07585, allocations: 227.5 kB / 441.2 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.07588, allocations: 8 kB / 441.2 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.0759, allocations: 8 kB / 441.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.07592, allocations: 8 kB / 441.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005172/0.07645, allocations: 197.5 kB / 441.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007988/0.07725, allocations: 0.666 MB / 442.1 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000629/0.0779, allocations: 254.4 kB / 442.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002705/0.07818, allocations: 120.8 kB / 442.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.0782, allocations: 4 kB / 442.4 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.07856, allocations: 173.1 kB / 442.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.603e-06/0.07858, allocations: 0 / 442.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002199/0.08078, allocations: 1.188 MB / 443.8 MB, free: 172 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.08082, allocations: 59.34 kB / 443.8 MB, free: 100 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.08098, allocations: 183.1 kB / 444 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.08101, allocations: 29.7 kB / 444.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.719e-05/0.08111, allocations: 148.6 kB / 444.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.817e-05/0.08118, allocations: 98.56 kB / 444.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.483e-05/0.08129, allocations: 61.69 kB / 444.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.08139, allocations: 338.8 kB / 444.7 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002976/0.0817, allocations: 92.27 kB / 444.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.08202, allocations: 135.4 kB / 444.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.08341, allocations: 0.5587 MB / 445.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.08342, allocations: 0 / 445.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007742/0.0842, allocations: 354.5 kB / 445.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.08425, allocations: 39.67 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.08426, allocations: 3.984 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.08428, allocations: 4 kB / 445.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.0846, allocations: 71.89 kB / 445.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.08462, allocations: 7.938 kB / 445.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002374/0.08486, allocations: 23.97 kB / 446 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.227e-05/0.0849, allocations: 12 kB / 446 MB, free: 13.88 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.0001907/0.0851, allocations: 164.3 kB / 446.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.08514, allocations: 23.73 kB / 446.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.619e-05/0.08521, allocations: 30.66 kB / 446.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.08522, allocations: 4 kB / 446.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.08523, allocations: 0 / 446.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.08524, allocations: 3.984 kB / 446.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.08646, allocations: 0.7957 MB / 447 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.08648, allocations: 0 / 447 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003395/0.08682, allocations: 71.89 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.08684, allocations: 4 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.08687, allocations: 8 kB / 447.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.08687, allocations: 0 / 447.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.08688, allocations: 0 / 447.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.08796, allocations: 0.525 MB / 447.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.375e-05/0.08804, allocations: 92.92 kB / 447.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.016e-05/0.08809, allocations: 16.03 kB / 447.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.08834, allocations: 15.98 kB / 447.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.031e-05/0.08843, allocations: 43.83 kB / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.08846, allocations: 11.94 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.86e-05/0.08856, allocations: 136.3 kB / 447.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08857, allocations: 0 / 447.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003228/0.08889, allocations: 63.98 kB / 448 MB, free: 11.76 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.0001237/0.08902, allocations: 119.7 kB / 448.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007538/0.08978, allocations: 319.2 kB / 448.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.0898, allocations: 0 / 448.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00035/0.09016, allocations: 148 kB / 448.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004439/0.09061, allocations: 51.77 kB / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.09331, allocations: 0.9174 MB / 449.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.09361, allocations: 0.7522 MB / 450.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.0937, allocations: 23.44 kB / 450.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.09371, allocations: 0 / 450.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of Templates: time 0.00532/0.09904, allocations: 3.179 MB / 453.5 MB, free: 6.195 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (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)