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.001598/0.001598, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002826/0.002826, allocations: 192.1 kB / 16.53 MB, free: 6.391 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.528/1.528, allocations: 205.1 MB / 222.4 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04277/0.04277, allocations: 8.106 MB / 277.9 MB, free: 13.2 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.001608/0.001608, allocations: 67.91 kB / 337.2 MB, free: 26.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09063, allocations: 48.3 MB / 385.5 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003977/0.09465, allocations: 2.409 MB / 387.9 MB, free: 7.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.09595, allocations: 0.6826 MB / 388.6 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.09617, allocations: 11.88 kB / 388.6 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001689/0.09637, allocations: 31.59 kB / 388.6 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.09661, allocations: 75.39 kB / 388.7 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.09693, allocations: 67.86 kB / 388.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004096/0.09735, allocations: 302.7 kB / 389.1 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.09758, allocations: 97.98 kB / 389.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.09778, allocations: 111.6 kB / 389.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.09796, allocations: 135.5 kB / 389.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.387e-05/0.09801, allocations: 20 kB / 389.4 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.001e-05/0.09807, allocations: 24 kB / 389.4 MB, free: 6.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.09813, allocations: 55.81 kB / 389.5 MB, free: 6.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.09827, allocations: 127.3 kB / 389.6 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.09858, allocations: 279.2 kB / 389.9 MB, free: 5.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.09859, allocations: 8 kB / 389.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.0986, allocations: 0 / 389.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.09862, allocations: 0 / 389.9 MB, free: 5.762 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.001052/0.09968, allocations: 0.5709 MB / 390.5 MB, free: 5.137 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.09973, allocations: 15.89 kB / 390.5 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.773e-05/0.09981, allocations: 24.66 kB / 390.5 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.1001, allocations: 255.7 kB / 390.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.1002, allocations: 16.81 kB / 390.8 MB, free: 4.793 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.1002, allocations: 24.38 kB / 390.8 MB, free: 4.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.1007, allocations: 227.5 kB / 391 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.1008, allocations: 4 kB / 391 MB, free: 4.535 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.1008, allocations: 4 kB / 391 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1008, allocations: 12 kB / 391 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005592/0.1014, allocations: 193.6 kB / 391.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.1025, allocations: 0.6777 MB / 391.9 MB, free: 3.602 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007163/0.1032, allocations: 252.9 kB / 392.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.1035, allocations: 121.1 kB / 392.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.1035, allocations: 11.94 kB / 392.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004911/0.104, allocations: 170.2 kB / 392.4 MB, free: 3.043 MB / 286.1 MB Notification: Performance of pre-optimization done (n=27): time 2.154e-06/0.1041, allocations: 0 / 392.4 MB, free: 3.043 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.002563/0.1066, allocations: 1.192 MB / 393.6 MB, free: 1.762 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.1067, allocations: 59.34 kB / 393.7 MB, free: 1.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.1068, allocations: 186.9 kB / 393.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.1069, allocations: 29.7 kB / 393.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.353e-05/0.107, allocations: 140.8 kB / 394 MB, free: 1.324 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.236e-05/0.1071, allocations: 110.4 kB / 394.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.555e-05/0.1072, allocations: 57.7 kB / 394.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1073, allocations: 338.8 kB / 394.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002899/0.1076, allocations: 100.2 kB / 394.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.1079, allocations: 127.4 kB / 394.8 MB, free: 0.582 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.1093, allocations: 0.5582 MB / 395.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1093, allocations: 0 / 395.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007786/0.1101, allocations: 358.4 kB / 395.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.351e-05/0.1102, allocations: 45.62 kB / 395.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1102, allocations: 0 / 395.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.1102, allocations: 0 / 395.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.1105, allocations: 71.89 kB / 395.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.1105, allocations: 8.062 kB / 395.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002369/0.1108, allocations: 27.97 kB / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.1108, allocations: 8 kB / 395.8 MB, free: 15.47 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.0002367/0.1111, allocations: 165.6 kB / 396 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/0.1111, allocations: 23.66 kB / 396 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.721e-05/0.1112, allocations: 30.64 kB / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.1112, allocations: 4 kB / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.1112, allocations: 0 / 396 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1112, allocations: 3.984 kB / 396.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.1125, allocations: 0.7841 MB / 396.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1125, allocations: 3.938 kB / 396.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.1128, allocations: 79.95 kB / 396.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1128, allocations: 4 kB / 396.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.1129, allocations: 8 kB / 396.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1129, allocations: 0 / 396.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1129, allocations: 0 / 396.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009899/0.1139, allocations: 0.5356 MB / 397.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.561e-05/0.1139, allocations: 96.83 kB / 397.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/0.114, allocations: 12.03 kB / 397.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1142, allocations: 15.98 kB / 397.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.881e-05/0.1143, allocations: 43.89 kB / 397.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.1143, allocations: 4 kB / 397.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000107/0.1145, allocations: 140.3 kB / 397.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1145, allocations: 0 / 397.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000313/0.1148, allocations: 60 kB / 397.8 MB, free: 13.35 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.000118/0.1149, allocations: 116 kB / 397.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008078/0.1157, allocations: 338.8 kB / 398.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1157, allocations: 0 / 398.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003609/0.1161, allocations: 143.8 kB / 398.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.1166, allocations: 56.14 kB / 398.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.1192, allocations: 0.8771 MB / 399.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.1196, allocations: 0.7483 MB / 400.1 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001191/0.1197, allocations: 30.27 kB / 400.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.128e-05/0.1198, allocations: 23.44 kB / 400.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1198, allocations: 0 / 400.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of Templates: time 0.007134/0.1269, allocations: 2.934 MB / 403.1 MB, free: 8.059 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)