Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 106.1 kB / 16.41 MB, free: 6.508 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.001426/0.001426, allocations: 187 kB / 17.34 MB, free: 5.742 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.599/1.599, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04571/0.04571, allocations: 8.1 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.001923/0.001924, allocations: 69.45 kB / 387.3 MB, free: 47.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 48.33 MB / 435.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003728/0.1097, allocations: 2.396 MB / 438 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1111, allocations: 0.632 MB / 438.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.1115, allocations: 7.938 kB / 438.7 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.1117, allocations: 35.66 kB / 438.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.1119, allocations: 67.36 kB / 438.8 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.1122, allocations: 75.83 kB / 438.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003014/0.1126, allocations: 294.8 kB / 439.1 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.1128, allocations: 97.92 kB / 439.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1129, allocations: 115.6 kB / 439.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1131, allocations: 127.4 kB / 439.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.387e-05/0.1131, allocations: 28 kB / 439.5 MB, free: 4.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.225e-05/0.1132, allocations: 24 kB / 439.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.791e-05/0.1132, allocations: 47.78 kB / 439.6 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.1133, allocations: 131.4 kB / 439.7 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.1136, allocations: 271 kB / 440 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1136, allocations: 0 / 440 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1136, allocations: 0 / 440 MB, free: 4.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1137, allocations: 0 / 440 MB, free: 4.223 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.0009556/0.1146, allocations: 0.5748 MB / 440.5 MB, free: 3.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1147, allocations: 12.03 kB / 440.6 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.967e-05/0.1147, allocations: 32.55 kB / 440.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1151, allocations: 240.6 kB / 440.8 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.1151, allocations: 16.81 kB / 440.8 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-05/0.1152, allocations: 24.38 kB / 440.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004692/0.1157, allocations: 227.5 kB / 441.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.1157, allocations: 7.906 kB / 441.1 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.275e-05/0.1157, allocations: 4 kB / 441.1 MB, free: 2.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.1158, allocations: 4 kB / 441.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000464/0.1162, allocations: 205.5 kB / 441.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008016/0.117, allocations: 0.7059 MB / 442 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006198/0.1177, allocations: 250.3 kB / 442.2 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.1179, allocations: 124.8 kB / 442.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1179, allocations: 0 / 442.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.1183, allocations: 171.1 kB / 442.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.1183, allocations: 0 / 442.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002047/0.1204, allocations: 1.115 MB / 443.7 MB, free: 272 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.1204, allocations: 63.33 kB / 443.7 MB, free: 196 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.1205, allocations: 175.5 kB / 443.9 MB, free: 8 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.1206, allocations: 29.7 kB / 443.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.1207, allocations: 144.7 kB / 444.1 MB, free: 15.83 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.698e-05/0.1208, allocations: 106.6 kB / 444.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.855e-05/0.1209, allocations: 45.7 kB / 444.2 MB, free: 15.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1211, allocations: 334.8 kB / 444.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000262/0.1213, allocations: 87.94 kB / 444.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.1216, allocations: 129.5 kB / 444.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.1229, allocations: 0.5191 MB / 445.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1229, allocations: 0 / 445.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007086/0.1236, allocations: 328.3 kB / 445.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.1237, allocations: 41.67 kB / 445.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1237, allocations: 0 / 445.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1237, allocations: 0 / 445.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.1241, allocations: 75.89 kB / 445.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1241, allocations: 0 / 445.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002124/0.1243, allocations: 27.97 kB / 445.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.1243, allocations: 12 kB / 445.7 MB, free: 14.08 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.count,$PRE.trapezoid.T_start,trapezoid.count,trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002787/0.1246, allocations: 166.5 kB / 445.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.1247, allocations: 23.75 kB / 445.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.062e-05/0.1247, allocations: 30.64 kB / 446 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1248, allocations: 4 kB / 446 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1248, allocations: 4 kB / 446 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1248, allocations: 0 / 446 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1259, allocations: 0.7071 MB / 446.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.126, allocations: 0 / 446.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.1263, allocations: 63.95 kB / 446.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1263, allocations: 4 kB / 446.7 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.1263, allocations: 4 kB / 446.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.1263, allocations: 4 kB / 446.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1263, allocations: 3.938 kB / 446.7 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.1273, allocations: 0.5056 MB / 447.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.1274, allocations: 96.86 kB / 447.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.1275, allocations: 8 kB / 447.4 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.1277, allocations: 27.97 kB / 447.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/0.1278, allocations: 23.97 kB / 447.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.1278, allocations: 15.88 kB / 447.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.1279, allocations: 124.7 kB / 447.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.246e-06/0.1279, allocations: 0 / 447.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003177/0.1283, allocations: 71.92 kB / 447.6 MB, free: 12.09 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: 3 ($whenCondition1,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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001337/0.1284, allocations: 107.2 kB / 447.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006733/0.1291, allocations: 300 kB / 448 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1291, allocations: 0 / 448 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002961/0.1294, allocations: 127.9 kB / 448.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004494/0.1299, allocations: 71.84 kB / 448.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.1324, allocations: 0.8824 MB / 449.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.1327, allocations: 0.7402 MB / 449.8 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.189e-05/0.1328, allocations: 31.44 kB / 449.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1328, allocations: 0 / 449.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of Templates: time 0.00482/0.1376, allocations: 3.045 MB / 452.9 MB, free: 6.719 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)