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.001795/0.001795, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001908/0.001908, allocations: 183 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.375/1.375, 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.04113/0.04113, allocations: 8.116 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.001475/0.001475, allocations: 70.77 kB / 387.3 MB, free: 47.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08619/0.08768, allocations: 48.32 MB / 435.6 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002902/0.09062, allocations: 2.388 MB / 438 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008835/0.09153, allocations: 0.6359 MB / 438.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.09167, allocations: 7.938 kB / 438.7 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001408/0.09185, allocations: 31.66 kB / 438.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001334/0.09199, allocations: 71.36 kB / 438.8 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.09222, allocations: 71.83 kB / 438.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002564/0.09249, allocations: 286.8 kB / 439.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.09268, allocations: 109.9 kB / 439.2 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.0928, allocations: 111.6 kB / 439.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.09293, allocations: 131.4 kB / 439.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.403e-05/0.09298, allocations: 24 kB / 439.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.296e-05/0.09302, allocations: 24 kB / 439.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.839e-05/0.09306, allocations: 47.84 kB / 439.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.253e-05/0.09316, allocations: 135.3 kB / 439.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.0934, allocations: 267.1 kB / 440 MB, free: 4.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.09341, allocations: 3.938 kB / 440 MB, free: 4.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.09342, allocations: 0 / 440 MB, free: 4.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.09343, allocations: 0 / 440 MB, free: 4.348 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.000829/0.09427, allocations: 0.567 MB / 440.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.09431, allocations: 20.02 kB / 440.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.09437, allocations: 32.5 kB / 440.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.09465, allocations: 244.6 kB / 440.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.09467, allocations: 16.81 kB / 440.8 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.573e-05/0.09472, allocations: 24.38 kB / 440.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.09516, allocations: 227.5 kB / 441.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.09519, allocations: 3.906 kB / 441.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.09522, allocations: 8 kB / 441.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.09523, allocations: 8 kB / 441.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004846/0.09572, allocations: 193.6 kB / 441.3 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00078/0.09651, allocations: 0.7215 MB / 442 MB, free: 2.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006166/0.09713, allocations: 246.2 kB / 442.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.0974, allocations: 120.8 kB / 442.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.09742, allocations: 0 / 442.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003317/0.09776, allocations: 171.1 kB / 442.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.09777, allocations: 0 / 442.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002017/0.09979, allocations: 1.115 MB / 443.6 MB, free: 396 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/0.09983, allocations: 59.39 kB / 443.7 MB, free: 324 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.09995, allocations: 175.5 kB / 443.9 MB, free: 136 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.09998, allocations: 29.7 kB / 443.9 MB, free: 100 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.1001, allocations: 140.8 kB / 444 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.229e-05/0.1002, allocations: 106.5 kB / 444.1 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/0.1002, allocations: 49.7 kB / 444.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1004, allocations: 338.8 kB / 444.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.1006, allocations: 83.94 kB / 444.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.1009, allocations: 129.5 kB / 444.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.1022, allocations: 0.5192 MB / 445.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1022, allocations: 4 kB / 445.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006803/0.1029, allocations: 328.3 kB / 445.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.103, allocations: 35.67 kB / 445.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.103, allocations: 0 / 445.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.103, allocations: 11.97 kB / 445.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.1033, allocations: 67.95 kB / 445.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1033, allocations: 0 / 445.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.1035, allocations: 23.97 kB / 445.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1036, allocations: 15.94 kB / 445.7 MB, free: 14.21 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.0002172/0.1038, allocations: 176 kB / 445.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.1038, allocations: 19.75 kB / 445.9 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.854e-05/0.1039, allocations: 30.64 kB / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1039, allocations: 4 kB / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1039, allocations: 3.938 kB / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1039, allocations: 0 / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.105, allocations: 0.7032 MB / 446.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.105, allocations: 0 / 446.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/0.1053, allocations: 75.95 kB / 446.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1054, allocations: 0 / 446.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.1054, allocations: 11.98 kB / 446.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1054, allocations: 0 / 446.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1054, allocations: 0 / 446.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000939/0.1063, allocations: 0.5094 MB / 447.3 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.1064, allocations: 100.9 kB / 447.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.455e-05/0.1065, allocations: 4 kB / 447.4 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.1067, allocations: 23.97 kB / 447.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.1068, allocations: 27.97 kB / 447.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.1068, allocations: 15.94 kB / 447.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.896e-05/0.1069, allocations: 132.6 kB / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1069, allocations: 0 / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.1072, allocations: 60 kB / 447.6 MB, free: 12.21 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.0001128/0.1073, allocations: 103.2 kB / 447.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000657/0.108, allocations: 308 kB / 448 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.108, allocations: 0 / 448 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003046/0.1083, allocations: 127.9 kB / 448.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.1087, allocations: 55.84 kB / 448.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.1112, allocations: 0.8902 MB / 449.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.1115, allocations: 0.748 MB / 449.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.968e-05/0.1115, allocations: 23.44 kB / 449.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1116, allocations: 0 / 449.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of Templates: time 0.004749/0.1163, allocations: 3.048 MB / 452.9 MB, free: 6.84 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)