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.001016/0.001016, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001069/0.001069, allocations: 195.4 kB / 16.14 MB, free: 6.711 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.292/1.292, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03716/0.03716, allocations: 8.106 MB / 277.4 MB, free: 13.38 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.001197/0.001197, allocations: 59.92 kB / 336.5 MB, free: 26.97 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07612/0.07732, allocations: 48.3 MB / 384.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003315/0.08068, allocations: 2.458 MB / 387.3 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.0817, allocations: 0.6826 MB / 387.9 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.08181, allocations: 7.938 kB / 388 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.08196, allocations: 19.78 kB / 388 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.08209, allocations: 55.55 kB / 388 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.08232, allocations: 75.86 kB / 388.1 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.08258, allocations: 274.8 kB / 388.4 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.08275, allocations: 81.91 kB / 388.4 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.08288, allocations: 115.5 kB / 388.6 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.08302, allocations: 119.4 kB / 388.7 MB, free: 6.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.08306, allocations: 16 kB / 388.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.562e-05/0.08311, allocations: 16 kB / 388.7 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.492e-05/0.08316, allocations: 47.81 kB / 388.8 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.08327, allocations: 123.3 kB / 388.9 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.0835, allocations: 263.3 kB / 389.1 MB, free: 6.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.08351, allocations: 4 kB / 389.1 MB, free: 6.246 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.08352, allocations: 0 / 389.1 MB, free: 6.246 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.08353, allocations: 0 / 389.1 MB, free: 6.246 MB / 286.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.0009071/0.08444, allocations: 0.5826 MB / 389.7 MB, free: 5.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.08448, allocations: 8.031 kB / 389.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.08454, allocations: 28.66 kB / 389.8 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.0848, allocations: 247.8 kB / 390 MB, free: 5.293 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.08483, allocations: 16.81 kB / 390 MB, free: 5.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.961e-05/0.08489, allocations: 24.38 kB / 390 MB, free: 5.254 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004866/0.08538, allocations: 227.5 kB / 390.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.0854, allocations: 0 / 390.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.08544, allocations: 12 kB / 390.3 MB, free: 5.012 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.08545, allocations: 7.938 kB / 390.3 MB, free: 5.004 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000536/0.08599, allocations: 205.5 kB / 390.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009248/0.08692, allocations: 0.6622 MB / 391.1 MB, free: 4.09 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006644/0.0876, allocations: 252.7 kB / 391.4 MB, free: 3.836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.0879, allocations: 125.2 kB / 391.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.08792, allocations: 3.938 kB / 391.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004539/0.08838, allocations: 181 kB / 391.7 MB, free: 3.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 1.613e-06/0.0884, allocations: 4 kB / 391.7 MB, free: 3.516 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002365/0.09077, allocations: 1.192 MB / 392.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.09082, allocations: 59.39 kB / 392.9 MB, free: 2.164 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.09098, allocations: 182.9 kB / 393.1 MB, free: 1.977 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.09102, allocations: 37.7 kB / 393.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.0911, allocations: 132.8 kB / 393.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.515e-05/0.09117, allocations: 110.4 kB / 393.4 MB, free: 1.691 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.09125, allocations: 57.7 kB / 393.5 MB, free: 1.629 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.381e-05/0.09135, allocations: 330.8 kB / 393.8 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.09162, allocations: 100.2 kB / 393.9 MB, free: 1.199 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.09191, allocations: 143.3 kB / 394 MB, free: 1.051 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.09312, allocations: 0.5387 MB / 394.6 MB, free: 496 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.09313, allocations: 0 / 394.6 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006924/0.09383, allocations: 366.4 kB / 394.9 MB, free: 116 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.09387, allocations: 33.64 kB / 394.9 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.09388, allocations: 0 / 394.9 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.0939, allocations: 4 kB / 395 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.0942, allocations: 75.94 kB / 395 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.09422, allocations: 3.938 kB / 395 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.09445, allocations: 27.98 kB / 395.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.09449, allocations: 12 kB / 395.1 MB, free: 15.95 MB / 302.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.0001841/0.09468, allocations: 169.1 kB / 395.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.09472, allocations: 27.66 kB / 395.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.627e-05/0.09478, allocations: 30.66 kB / 395.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.09479, allocations: 4 kB / 395.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.0948, allocations: 3.984 kB / 395.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.09481, allocations: 3.938 kB / 395.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.09592, allocations: 0.7799 MB / 396.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.09593, allocations: 3.938 kB / 396.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.09624, allocations: 63.95 kB / 396.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.09626, allocations: 4.062 kB / 396.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.09628, allocations: 12 kB / 396.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.09629, allocations: 8 kB / 396.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.0963, allocations: 7.922 kB / 396.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009358/0.09724, allocations: 0.5318 MB / 396.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.09731, allocations: 96.86 kB / 396.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.09735, allocations: 8 kB / 396.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.09757, allocations: 23.97 kB / 396.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.09766, allocations: 27.91 kB / 396.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.09769, allocations: 16 kB / 396.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.0978, allocations: 136.3 kB / 397 MB, free: 13.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0978, allocations: 0 / 397 MB, free: 13.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002922/0.0981, allocations: 64 kB / 397.1 MB, free: 13.83 MB / 302.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.0001073/0.09821, allocations: 107.5 kB / 397.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006625/0.09888, allocations: 326.9 kB / 397.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.09889, allocations: 0 / 397.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.09923, allocations: 143.8 kB / 397.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004217/0.09966, allocations: 51.84 kB / 397.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.102, allocations: 0.9749 MB / 398.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.1023, allocations: 0.7522 MB / 399.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.1024, allocations: 26.28 kB / 399.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.806e-05/0.1024, allocations: 23.44 kB / 399.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1025, allocations: 0 / 399.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Templates: time 0.005011/0.1075, allocations: 2.708 MB / 402.2 MB, free: 8.695 MB / 302.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)