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.0007808/0.0007805, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.0008458/0.000846, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.4 MB / 222.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03857/0.03856, allocations: 8.11 MB / 278.5 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.0005404/0.0005405, allocations: 19.11 kB / 338.3 MB, free: 27.01 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09458, allocations: 49.27 MB / 387.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.00291/0.09755, allocations: 2.042 MB / 389.6 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.09882, allocations: 0.6479 MB / 390.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.09905, allocations: 7.938 kB / 390.2 MB, free: 6.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.09922, allocations: 19.84 kB / 390.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.09944, allocations: 63.47 kB / 390.3 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.09975, allocations: 55.94 kB / 390.4 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003587/0.1001, allocations: 274.8 kB / 390.7 MB, free: 6.551 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.1003, allocations: 65.34 kB / 390.7 MB, free: 6.484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.1005, allocations: 99.62 kB / 390.8 MB, free: 6.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001734/0.1007, allocations: 103.5 kB / 390.9 MB, free: 6.285 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.1008, allocations: 12 kB / 390.9 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.569e-05/0.1008, allocations: 16 kB / 390.9 MB, free: 6.258 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.1009, allocations: 43.83 kB / 391 MB, free: 6.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.101, allocations: 69.58 kB / 391.1 MB, free: 6.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002557/0.1013, allocations: 195.7 kB / 391.2 MB, free: 5.949 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.916e-06/0.1013, allocations: 0 / 391.2 MB, free: 5.949 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1013, allocations: 0 / 391.2 MB, free: 5.949 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1013, allocations: 0 / 391.2 MB, free: 5.949 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.001117/0.1025, allocations: 0.5474 MB / 391.8 MB, free: 5.344 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1025, allocations: 8.031 kB / 391.8 MB, free: 5.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.1026, allocations: 31.66 kB / 391.8 MB, free: 5.305 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.1031, allocations: 246.6 kB / 392.1 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.1031, allocations: 16.44 kB / 392.1 MB, free: 5.008 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.551e-05/0.1032, allocations: 27.91 kB / 392.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.1038, allocations: 235.2 kB / 392.3 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.1039, allocations: 0 / 392.3 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.1039, allocations: 15.94 kB / 392.4 MB, free: 4.727 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1039, allocations: 7.938 kB / 392.4 MB, free: 4.719 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.1045, allocations: 225.6 kB / 392.6 MB, free: 4.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.1059, allocations: 0.67 MB / 393.3 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.1066, allocations: 270.4 kB / 393.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.1069, allocations: 136.7 kB / 393.7 MB, free: 3.371 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.1069, allocations: 4 kB / 393.7 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004793/0.1074, allocations: 189.1 kB / 393.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 2.845e-06/0.1074, allocations: 0 / 393.8 MB, free: 3.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002757/0.1102, allocations: 1.248 MB / 395.1 MB, free: 1.836 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.1103, allocations: 63.41 kB / 395.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.1105, allocations: 186.8 kB / 395.3 MB, free: 1.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1106, allocations: 33.7 kB / 395.4 MB, free: 1.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.1107, allocations: 136.7 kB / 395.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1108, allocations: 110.5 kB / 395.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.1109, allocations: 8 kB / 395.6 MB, free: 1.277 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.111, allocations: 326.8 kB / 395.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.1114, allocations: 116.2 kB / 396 MB, free: 0.832 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.1117, allocations: 151.3 kB / 396.2 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.112, allocations: 158 kB / 396.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.112, allocations: 4 kB / 396.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007741/0.1128, allocations: 382.4 kB / 396.7 MB, free: 128 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.1129, allocations: 40.16 kB / 396.8 MB, free: 84 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.1129, allocations: 3.984 kB / 396.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.1129, allocations: 0 / 396.8 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.1133, allocations: 79.89 kB / 396.8 MB, free: 0 / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.1133, allocations: 8.078 kB / 396.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.1136, allocations: 31.97 kB / 396.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.1136, allocations: 12 kB / 396.9 MB, free: 15.95 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(flow=false fixed = true ) "Sensed speed" 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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 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,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002458/0.1139, allocations: 165 kB / 397.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.1139, allocations: 19.81 kB / 397.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.46e-05/0.114, allocations: 38.59 kB / 397.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.114, allocations: 4 kB / 397.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.114, allocations: 0 / 397.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.114, allocations: 3.938 kB / 397.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001238/0.1153, allocations: 0.8189 MB / 397.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1153, allocations: 0 / 397.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.1156, allocations: 75.95 kB / 398 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-06/0.1156, allocations: 4 kB / 398 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.1157, allocations: 4 kB / 398 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.1157, allocations: 7.984 kB / 398 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1157, allocations: 0 / 398 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.1167, allocations: 0.5669 MB / 398.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.295e-05/0.1168, allocations: 92.95 kB / 398.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.1169, allocations: 8 kB / 398.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.1171, allocations: 31.97 kB / 398.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.324e-05/0.1172, allocations: 31.95 kB / 398.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.1172, allocations: 8 kB / 398.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000114/0.1173, allocations: 128.4 kB / 398.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1173, allocations: 0 / 398.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1177, allocations: 64 kB / 399 MB, free: 13.77 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001253/0.1178, allocations: 111.2 kB / 399.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007/0.1185, allocations: 343.2 kB / 399.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1185, allocations: 0 / 399.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.1189, allocations: 156 kB / 399.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.1193, allocations: 63.73 kB / 399.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1218, allocations: 1.032 MB / 400.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1222, allocations: 0.7522 MB / 401.4 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.1223, allocations: 26.23 kB / 401.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.06e-05/0.1224, allocations: 23.44 kB / 401.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1224, allocations: 4 kB / 401.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Templates: time 0.007459/0.1298, allocations: 2.591 MB / 404 MB, free: 8.645 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: