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.001051/0.001051, allocations: 101.8 kB / 15.98 MB, free: 6.336 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.001046/0.001046, allocations: 196.9 kB / 16.91 MB, free: 6.184 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.355/1.355, allocations: 205.1 MB / 222.8 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03909/0.03909, allocations: 8.115 MB / 278.2 MB, free: 13.32 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.001491/0.001492, allocations: 75.89 kB / 337.3 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.09101, allocations: 48.3 MB / 385.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003941/0.09499, allocations: 2.458 MB / 388.1 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.09634, allocations: 0.6709 MB / 388.8 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002452/0.09661, allocations: 7.938 kB / 388.8 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.09681, allocations: 23.78 kB / 388.8 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.09709, allocations: 63.47 kB / 388.9 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.09741, allocations: 59.94 kB / 388.9 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.09783, allocations: 302.8 kB / 389.2 MB, free: 6.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.09806, allocations: 97.98 kB / 389.3 MB, free: 6.797 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.09825, allocations: 111.6 kB / 389.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.09843, allocations: 131.5 kB / 389.6 MB, free: 6.559 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.09849, allocations: 24 kB / 389.6 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.78e-05/0.09855, allocations: 23.94 kB / 389.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.005e-05/0.09861, allocations: 55.83 kB / 389.7 MB, free: 6.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.09875, allocations: 127.4 kB / 389.8 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.099, allocations: 215.7 kB / 390 MB, free: 6.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.09901, allocations: 0 / 390 MB, free: 6.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09902, allocations: 0 / 390 MB, free: 6.121 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.09903, allocations: 0 / 390 MB, free: 6.121 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.001048/0.1001, allocations: 0.5709 MB / 390.6 MB, free: 5.496 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1001, allocations: 15.89 kB / 390.6 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.677e-05/0.1002, allocations: 24.66 kB / 390.6 MB, free: 5.457 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.1005, allocations: 256.8 kB / 390.9 MB, free: 5.168 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.1005, allocations: 16.81 kB / 390.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.37e-05/0.1006, allocations: 28.25 kB / 390.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000513/0.1011, allocations: 227.5 kB / 391.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1011, allocations: 0 / 391.1 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.1012, allocations: 12 kB / 391.1 MB, free: 4.883 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1012, allocations: 8 kB / 391.1 MB, free: 4.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.1017, allocations: 193.6 kB / 391.3 MB, free: 4.688 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.1028, allocations: 0.6661 MB / 392 MB, free: 3.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006777/0.1035, allocations: 261.1 kB / 392.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002869/0.1038, allocations: 121.2 kB / 392.4 MB, free: 3.586 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.1038, allocations: 7.938 kB / 392.4 MB, free: 3.578 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004592/0.1043, allocations: 173.1 kB / 392.5 MB, free: 3.398 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 2.174e-06/0.1043, allocations: 4 kB / 392.5 MB, free: 3.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002457/0.1067, allocations: 1.195 MB / 393.7 MB, free: 2.109 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.1068, allocations: 55.41 kB / 393.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.107, allocations: 186.9 kB / 394 MB, free: 1.852 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.107, allocations: 29.7 kB / 394 MB, free: 1.816 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.63e-05/0.1071, allocations: 136.8 kB / 394.1 MB, free: 1.68 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.796e-05/0.1072, allocations: 110.4 kB / 394.3 MB, free: 1.57 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.688e-05/0.1073, allocations: 53.7 kB / 394.3 MB, free: 1.512 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1074, allocations: 338.8 kB / 394.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.1077, allocations: 104.2 kB / 394.7 MB, free: 1.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000284/0.108, allocations: 127.4 kB / 394.9 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/0.1093, allocations: 0.5504 MB / 395.4 MB, free: 368 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1093, allocations: 3.938 kB / 395.4 MB, free: 364 kB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007301/0.11, allocations: 358.5 kB / 395.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.1101, allocations: 41.58 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1101, allocations: 0 / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1101, allocations: 3.938 kB / 395.8 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.1104, allocations: 75.89 kB / 395.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1104, allocations: 4 kB / 395.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1106, allocations: 27.97 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.1107, allocations: 12.03 kB / 395.9 MB, free: 15.82 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.000226/0.1109, allocations: 164.5 kB / 396.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.111, allocations: 27.59 kB / 396.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.835e-05/0.111, allocations: 30.66 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.111, allocations: 4 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.111, allocations: 0 / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.111, allocations: 3.984 kB / 396.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.1122, allocations: 0.7799 MB / 396.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1122, allocations: 4 kB / 396.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003102/0.1125, allocations: 71.89 kB / 397 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1126, allocations: 3.984 kB / 397 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.1126, allocations: 12 kB / 397 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1126, allocations: 4.062 kB / 397 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1126, allocations: 3.984 kB / 397 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009744/0.1136, allocations: 0.5356 MB / 397.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.347e-05/0.1136, allocations: 96.83 kB / 397.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.1137, allocations: 12.03 kB / 397.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.1139, allocations: 19.98 kB / 397.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.644e-05/0.114, allocations: 35.89 kB / 397.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1141, allocations: 4 kB / 397.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001069/0.1142, allocations: 144.3 kB / 397.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1142, allocations: 0 / 397.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.1145, allocations: 60 kB / 397.9 MB, free: 13.71 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.0001157/0.1146, allocations: 107.5 kB / 398 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007514/0.1154, allocations: 334.9 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1154, allocations: 4.125 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003205/0.1157, allocations: 143.8 kB / 398.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000438/0.1162, allocations: 51.84 kB / 398.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.1187, allocations: 0.9893 MB / 399.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.119, allocations: 0.7561 MB / 400.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.499e-05/0.119, allocations: 23.44 kB / 400.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1191, allocations: 0 / 400.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of Templates: time 0.004682/0.1237, allocations: 3.17 MB / 403.5 MB, free: 8.07 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)