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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.004029/0.004029, allocations: 175.6 kB / 15.12 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.045/1.045, allocations: 194.5 MB / 210.3 MB, free: 7.625 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03539/0.03539, allocations: 8.108 MB / 263.6 MB, free: 2.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001528/0.001528, allocations: 136.2 kB / 310.6 MB, free: 27.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003199/0.0003198, allocations: 12 kB / 367.3 MB, free: 2.316 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.172, allocations: 46.2 MB / 413.5 MB, free: 47.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07208/0.2442, allocations: 74.7 MB / 488.1 MB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 9.458e-05/0.2443, allocations: 47.98 kB / 488.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01005/0.2544, allocations: 4.015 MB / 492.2 MB, free: 7.02 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2544, allocations: 0 / 492.2 MB, free: 7.02 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.2544, allocations: 8 kB / 492.2 MB, free: 7.012 MB / 330.7 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.0007131/0.2551, allocations: 0.5401 MB / 492.8 MB, free: 6.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.2552, allocations: 16.03 kB / 492.8 MB, free: 6.402 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.2552, allocations: 27.62 kB / 492.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.2554, allocations: 239.5 kB / 493 MB, free: 6.098 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2555, allocations: 20.42 kB / 493.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.2555, allocations: 27.98 kB / 493.1 MB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.2559, allocations: 223.2 kB / 493.3 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.256, allocations: 15.89 kB / 493.3 MB, free: 5.812 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.256, allocations: 4 kB / 493.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.256, allocations: 8 kB / 493.3 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004958/0.2565, allocations: 217.6 kB / 493.5 MB, free: 5.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2575, allocations: 0.7578 MB / 494.3 MB, free: 4.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.2582, allocations: 267 kB / 494.6 MB, free: 4.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.2582, allocations: 4 kB / 494.6 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003605/0.2585, allocations: 169 kB / 494.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.603e-06/0.2586, allocations: 3.938 kB / 494.7 MB, free: 4.316 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.002055/0.2606, allocations: 1.205 MB / 495.9 MB, free: 3.023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.2607, allocations: 63.34 kB / 496 MB, free: 2.949 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2608, allocations: 154.6 kB / 496.1 MB, free: 2.785 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.2608, allocations: 33.7 kB / 496.2 MB, free: 2.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.586e-05/0.2609, allocations: 144.6 kB / 496.3 MB, free: 2.602 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.018e-05/0.261, allocations: 94.64 kB / 496.4 MB, free: 2.508 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.261, allocations: 4 kB / 496.4 MB, free: 2.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.346e-05/0.2611, allocations: 338.8 kB / 496.8 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.2613, allocations: 102.6 kB / 496.9 MB, free: 2.066 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.2616, allocations: 131.2 kB / 497 MB, free: 1.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.2619, allocations: 142.5 kB / 497.1 MB, free: 1.789 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2619, allocations: 0 / 497.1 MB, free: 1.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006236/0.2625, allocations: 360 kB / 497.5 MB, free: 1.426 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.2626, allocations: 41.64 kB / 497.5 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2626, allocations: 0 / 497.5 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.2626, allocations: 0 / 497.5 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2629, allocations: 83.92 kB / 497.6 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.2629, allocations: 0 / 497.6 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.2631, allocations: 31.97 kB / 497.6 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.2631, allocations: 12 kB / 497.6 MB, free: 1.254 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.2633, allocations: 163.9 kB / 497.8 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.2633, allocations: 27.7 kB / 497.8 MB, free: 1.062 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.316e-05/0.2634, allocations: 26.61 kB / 497.8 MB, free: 1.039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.2634, allocations: 4 kB / 497.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2634, allocations: 0 / 497.9 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2634, allocations: 7.984 kB / 497.9 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009719/0.2644, allocations: 0.7267 MB / 498.6 MB, free: 244 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2644, allocations: 8 kB / 498.6 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003109/0.2647, allocations: 76.02 kB / 498.7 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.289e-06/0.2647, allocations: 3.938 kB / 498.7 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.2648, allocations: 11.94 kB / 498.7 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2648, allocations: 3.984 kB / 498.7 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2648, allocations: 0 / 498.7 MB, free: 140 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.2657, allocations: 0.5554 MB / 499.2 MB, free: 15.55 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.621e-05/0.2657, allocations: 92.92 kB / 499.3 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.979e-05/0.2658, allocations: 8 kB / 499.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002218/0.266, allocations: 28.02 kB / 499.4 MB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.53e-05/0.2661, allocations: 35.83 kB / 499.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.2661, allocations: 15.95 kB / 499.4 MB, free: 15.35 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.134e-05/0.2662, allocations: 133.2 kB / 499.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2662, allocations: 4 kB / 499.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002707/0.2665, allocations: 63.98 kB / 499.6 MB, free: 15.16 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.847e-05/0.2666, allocations: 103.2 kB / 499.7 MB, free: 15.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006025/0.2672, allocations: 332 kB / 0.4883 GB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2672, allocations: 0 / 0.4883 GB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.2675, allocations: 148.5 kB / 0.4885 GB, free: 14.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.2678, allocations: 36.23 kB / 0.4885 GB, free: 14.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.27, allocations: 1.011 MB / 0.4895 GB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.2702, allocations: 0.7518 MB / 0.4902 GB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.955e-05/0.2703, allocations: 30.27 kB / 0.4902 GB, free: 12.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.2704, allocations: 27.38 kB / 0.4903 GB, free: 12.65 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2704, allocations: 0 / 0.4903 GB, free: 12.65 MB / 346.7 MB Notification: Performance of Templates: time 0.004474/0.2748, allocations: 2.478 MB / 0.4927 GB, free: 10.22 MB / 346.7 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)