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.001308/0.001308, allocations: 113.2 kB / 16.42 MB, free: 6.441 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.001318/0.001318, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.269/1.269, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04314/0.04314, allocations: 8.114 MB / 278.7 MB, free: 3.93 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.001483/0.001483, allocations: 71.8 kB / 387.3 MB, free: 47.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06375/0.06524, allocations: 48.32 MB / 435.6 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.002657/0.06792, allocations: 2.396 MB / 438 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007242/0.06866, allocations: 0.6319 MB / 438.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.06878, allocations: 4 kB / 438.7 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001224/0.06891, allocations: 39.59 kB / 438.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.06903, allocations: 71.41 kB / 438.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.06923, allocations: 67.84 kB / 438.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002135/0.06945, allocations: 294.7 kB / 439.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.06961, allocations: 109.9 kB / 439.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.06972, allocations: 107.6 kB / 439.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.06984, allocations: 127.5 kB / 439.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.06988, allocations: 24 kB / 439.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.788e-05/0.06992, allocations: 27.94 kB / 439.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.773e-05/0.06997, allocations: 47.83 kB / 439.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.818e-05/0.07006, allocations: 131.4 kB / 439.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001947/0.07026, allocations: 271 kB / 440 MB, free: 4.328 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.07027, allocations: 0 / 440 MB, free: 4.328 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.07028, allocations: 0 / 440 MB, free: 4.328 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.07029, allocations: 4 kB / 440 MB, free: 4.324 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.0007888/0.07108, allocations: 0.5709 MB / 440.5 MB, free: 3.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.07112, allocations: 12.03 kB / 440.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.07118, allocations: 28.56 kB / 440.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.07141, allocations: 240.6 kB / 440.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.07143, allocations: 24.8 kB / 440.8 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.07148, allocations: 24.38 kB / 440.9 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.07192, allocations: 215.5 kB / 441.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.07195, allocations: 15.89 kB / 441.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.042e-05/0.07197, allocations: 4 kB / 441.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.07198, allocations: 4 kB / 441.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004912/0.07248, allocations: 205.5 kB / 441.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007581/0.07324, allocations: 0.702 MB / 442 MB, free: 2.133 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000608/0.07386, allocations: 258.3 kB / 442.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.07413, allocations: 116.8 kB / 442.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.07415, allocations: 0 / 442.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000323/0.07448, allocations: 171.2 kB / 442.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of pre-optimization done (n=25): time 1.713e-06/0.07449, allocations: 0 / 442.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001986/0.07648, allocations: 1.119 MB / 443.7 MB, free: 376 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.748e-05/0.07651, allocations: 59.41 kB / 443.7 MB, free: 304 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.07663, allocations: 179.5 kB / 443.9 MB, free: 112 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.07665, allocations: 29.7 kB / 443.9 MB, free: 76 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.07675, allocations: 140.7 kB / 444.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/0.07682, allocations: 102.6 kB / 444.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.731e-05/0.07691, allocations: 45.7 kB / 444.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.07704, allocations: 330.8 kB / 444.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/0.07733, allocations: 99.92 kB / 444.6 MB, free: 15.35 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.07763, allocations: 121.5 kB / 444.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.07893, allocations: 0.5191 MB / 445.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.07894, allocations: 0 / 445.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006993/0.07965, allocations: 332.3 kB / 445.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.0797, allocations: 37.69 kB / 445.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.07971, allocations: 3.938 kB / 445.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.07973, allocations: 0 / 445.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.08004, allocations: 79.89 kB / 445.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/0.08005, allocations: 0 / 445.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.08027, allocations: 28 kB / 445.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.0803, allocations: 12 kB / 445.7 MB, free: 14.18 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.0001962/0.08051, allocations: 167.4 kB / 445.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.307e-05/0.08055, allocations: 23.8 kB / 445.9 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.091e-05/0.08061, allocations: 30.59 kB / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.08062, allocations: 0 / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.08063, allocations: 3.984 kB / 446 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/0.08069, allocations: 92.83 kB / 446.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.08074, allocations: 8 kB / 446.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.08095, allocations: 19.97 kB / 446.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.307e-05/0.08103, allocations: 27.97 kB / 446.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000922/0.08196, allocations: 388.8 kB / 446.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009992/0.08297, allocations: 0.5765 MB / 447.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002874/0.08327, allocations: 120.5 kB / 447.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.512e-05/0.08337, allocations: 132.7 kB / 447.3 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Backend: time 7.21e-07/0.08338, allocations: 4 kB / 447.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006928/0.08408, allocations: 288.5 kB / 447.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of SimCode: time 0.001159/0.08525, allocations: 1.103 MB / 448.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Templates: time 0.006128/0.09139, allocations: 3.293 MB / 452 MB, free: 7.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)