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.006939/0.006939, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001341/0.001341, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.664/1.664, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04253/0.04253, allocations: 8.11 MB / 278 MB, free: 3.941 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.001477/0.001477, allocations: 71.08 kB / 386.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1227, allocations: 48.31 MB / 435 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.0038/0.1266, allocations: 2.422 MB / 437.4 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1279, allocations: 0.6709 MB / 438.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.128, allocations: 7.938 kB / 438.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1282, allocations: 31.66 kB / 438.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.1284, allocations: 79.33 kB / 438.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.1287, allocations: 75.84 kB / 438.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.129, allocations: 298.7 kB / 438.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.1293, allocations: 105.9 kB / 438.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.1294, allocations: 115.6 kB / 438.8 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.1296, allocations: 131.4 kB / 438.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.1297, allocations: 28 kB / 438.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.115e-05/0.1297, allocations: 24 kB / 438.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.1298, allocations: 47.78 kB / 439 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.1299, allocations: 135.4 kB / 439.1 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003326/0.1303, allocations: 282.8 kB / 439.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.1303, allocations: 0 / 439.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1303, allocations: 0 / 439.4 MB, free: 4.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1303, allocations: 0 / 439.4 MB, free: 4.129 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.001099/0.1314, allocations: 0.5784 MB / 440 MB, free: 3.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.1315, allocations: 15.89 kB / 440 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.1315, allocations: 24.8 kB / 440 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004355/0.132, allocations: 251.9 kB / 440.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.132, allocations: 20.81 kB / 440.3 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/0.1321, allocations: 24.31 kB / 440.3 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.1326, allocations: 231.5 kB / 440.5 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.1326, allocations: 3.953 kB / 440.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.1327, allocations: 8 kB / 440.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1327, allocations: 4 kB / 440.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005033/0.1332, allocations: 193.6 kB / 440.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009958/0.1342, allocations: 0.674 MB / 441.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006761/0.1349, allocations: 246.4 kB / 441.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002632/0.1352, allocations: 127.4 kB / 441.8 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.1352, allocations: 7.938 kB / 441.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003711/0.1356, allocations: 173.1 kB / 441.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.1356, allocations: 0 / 441.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002279/0.1379, allocations: 1.197 MB / 443.1 MB, free: 120 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.1379, allocations: 63.33 kB / 443.2 MB, free: 44 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.1381, allocations: 179.2 kB / 443.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.1382, allocations: 37.7 kB / 443.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1383, allocations: 144.9 kB / 443.6 MB, free: 15.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.633e-05/0.1384, allocations: 111 kB / 443.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.132e-05/0.1385, allocations: 53.69 kB / 443.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1387, allocations: 334.8 kB / 444 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.139, allocations: 100.2 kB / 444.1 MB, free: 15.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.1393, allocations: 135.4 kB / 444.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.1405, allocations: 0.551 MB / 444.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1405, allocations: 3.938 kB / 444.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006885/0.1412, allocations: 358.6 kB / 445.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.1413, allocations: 33.64 kB / 445.2 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.1413, allocations: 4 kB / 445.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.1413, allocations: 3.984 kB / 445.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003059/0.1416, allocations: 75.89 kB / 445.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1417, allocations: 4 kB / 445.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.1419, allocations: 28.03 kB / 445.3 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.1419, allocations: 8 kB / 445.3 MB, free: 13.82 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.0002447/0.1422, allocations: 154.5 kB / 445.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.795e-05/0.1422, allocations: 35.78 kB / 445.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.935e-05/0.1423, allocations: 26.66 kB / 445.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.1423, allocations: 4 kB / 445.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.1423, allocations: 0 / 445.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.1423, allocations: 3.984 kB / 445.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.1437, allocations: 0.7842 MB / 446.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1437, allocations: 3.984 kB / 446.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.144, allocations: 71.89 kB / 446.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.144, allocations: 4 kB / 446.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.144, allocations: 7.938 kB / 446.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.1441, allocations: 4 kB / 446.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1441, allocations: 0 / 446.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1452, allocations: 0.5368 MB / 447 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.1452, allocations: 92.97 kB / 447 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.1453, allocations: 16.03 kB / 447.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.1455, allocations: 19.98 kB / 447.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.513e-05/0.1456, allocations: 31.89 kB / 447.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1456, allocations: 11.94 kB / 447.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.1458, allocations: 132.3 kB / 447.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1458, allocations: 0 / 447.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1462, allocations: 68 kB / 447.3 MB, free: 11.71 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.0001363/0.1463, allocations: 123.7 kB / 447.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000791/0.1471, allocations: 315.2 kB / 447.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1471, allocations: 0 / 447.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.1475, allocations: 151.9 kB / 447.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.148, allocations: 54.98 kB / 448 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.1507, allocations: 0.8958 MB / 448.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.1512, allocations: 0.7522 MB / 449.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1513, allocations: 18.3 kB / 449.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.308e-05/0.1514, allocations: 23.44 kB / 449.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1514, allocations: 0 / 449.6 MB, free: 9.301 MB / 334.1 MB Notification: Performance of Templates: time 0.007231/0.1586, allocations: 2.979 MB / 452.6 MB, free: 6.383 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)