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.001188/0.001188, allocations: 108.5 kB / 16.41 MB, free: 6.496 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.001265/0.001265, allocations: 189.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.543/1.543, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04193/0.04193, allocations: 8.119 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.001535/0.001536, allocations: 73.84 kB / 387.3 MB, free: 47.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09518, allocations: 48.31 MB / 435.6 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003219/0.09844, allocations: 2.419 MB / 438.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009416/0.09941, allocations: 0.667 MB / 438.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.09955, allocations: 7.938 kB / 438.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.0997, allocations: 35.66 kB / 438.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.09984, allocations: 79.33 kB / 438.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.1001, allocations: 67.86 kB / 438.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.1003, allocations: 306.7 kB / 439.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.1005, allocations: 109.9 kB / 439.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1007, allocations: 107.6 kB / 439.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.1008, allocations: 135.4 kB / 439.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.68e-05/0.1008, allocations: 20 kB / 439.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.607e-05/0.1009, allocations: 24 kB / 439.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.1009, allocations: 51.78 kB / 439.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.598e-05/0.101, allocations: 127.4 kB / 439.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.1013, allocations: 287 kB / 440.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1013, allocations: 0 / 440.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1013, allocations: 4 kB / 440.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1013, allocations: 4 kB / 440.1 MB, free: 4.039 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.0008727/0.1022, allocations: 0.5708 MB / 440.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1022, allocations: 15.89 kB / 440.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.855e-05/0.1023, allocations: 24.66 kB / 440.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.1026, allocations: 243.9 kB / 440.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1026, allocations: 24.75 kB / 440.9 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.1026, allocations: 28.28 kB / 441 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004381/0.1031, allocations: 227.5 kB / 441.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.1031, allocations: 0 / 441.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.1031, allocations: 8 kB / 441.2 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.1032, allocations: 7.984 kB / 441.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004736/0.1036, allocations: 201.5 kB / 441.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008202/0.1045, allocations: 0.6621 MB / 442.1 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006103/0.1051, allocations: 254.4 kB / 442.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.1053, allocations: 120.8 kB / 442.4 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1054, allocations: 3.938 kB / 442.4 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.1057, allocations: 173.1 kB / 442.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.1057, allocations: 0 / 442.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002118/0.1078, allocations: 1.192 MB / 443.8 MB, free: 48 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.1079, allocations: 59.41 kB / 443.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.1081, allocations: 179.1 kB / 444 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.1081, allocations: 37.7 kB / 444.1 MB, free: 15.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1082, allocations: 140.6 kB / 444.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.971e-05/0.1083, allocations: 98.55 kB / 444.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.901e-05/0.1084, allocations: 65.62 kB / 444.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1086, allocations: 334.8 kB / 444.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002738/0.1089, allocations: 96.27 kB / 444.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002955/0.1092, allocations: 135.4 kB / 444.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.1105, allocations: 0.5547 MB / 445.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1105, allocations: 4 kB / 445.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007448/0.1113, allocations: 354.5 kB / 445.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/0.1113, allocations: 35.67 kB / 445.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1113, allocations: 0 / 445.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.1113, allocations: 7.984 kB / 445.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003151/0.1117, allocations: 75.95 kB / 445.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.1117, allocations: 0 / 445.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1119, allocations: 31.97 kB / 446 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.1119, allocations: 4 kB / 446 MB, free: 13.77 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.0002212/0.1121, allocations: 171.6 kB / 446.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-05/0.1122, allocations: 27.73 kB / 446.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.586e-05/0.1123, allocations: 26.66 kB / 446.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1123, allocations: 4 kB / 446.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1123, allocations: 0 / 446.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.1123, allocations: 3.984 kB / 446.2 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.1135, allocations: 0.7919 MB / 447 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1135, allocations: 7.969 kB / 447 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.1139, allocations: 71.89 kB / 447.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1139, allocations: 4.062 kB / 447.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.1139, allocations: 8 kB / 447.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1139, allocations: 0 / 447.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1139, allocations: 4 kB / 447.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.115, allocations: 0.5327 MB / 447.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.435e-05/0.115, allocations: 88.92 kB / 447.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.1151, allocations: 12.03 kB / 447.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.1153, allocations: 19.98 kB / 447.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.259e-05/0.1154, allocations: 35.89 kB / 447.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.1154, allocations: 12 kB / 447.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001196/0.1155, allocations: 132.3 kB / 447.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1156, allocations: 0 / 447.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003082/0.1159, allocations: 64 kB / 448 MB, free: 11.64 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.0001276/0.116, allocations: 119.6 kB / 448.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006998/0.1167, allocations: 319.2 kB / 448.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.1167, allocations: 0 / 448.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003127/0.117, allocations: 143.8 kB / 448.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.1175, allocations: 51.83 kB / 448.6 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.12, allocations: 0.9099 MB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.1203, allocations: 0.7522 MB / 450.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.279e-05/0.1204, allocations: 27.44 kB / 450.3 MB, free: 9.242 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1204, allocations: 0 / 450.3 MB, free: 9.242 MB / 334.1 MB Notification: Performance of Templates: time 0.005239/0.1257, allocations: 3.186 MB / 453.5 MB, free: 6.082 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)