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.001488/0.001488, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001805/0.001806, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.529/1.529, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04187/0.04187, allocations: 8.11 MB / 277.9 MB, free: 13.2 MB / 238.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.001757/0.001757, allocations: 75.89 kB / 337.2 MB, free: 26.55 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09595, allocations: 48.29 MB / 385.5 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003823/0.09981, allocations: 2.397 MB / 387.9 MB, free: 7.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.101, allocations: 0.6397 MB / 388.5 MB, free: 7.141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1013, allocations: 7.938 kB / 388.5 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.1015, allocations: 31.66 kB / 388.6 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.1017, allocations: 67.34 kB / 388.6 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.102, allocations: 67.91 kB / 388.7 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.1023, allocations: 302.7 kB / 389 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.1025, allocations: 97.97 kB / 389.1 MB, free: 6.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001711/0.1027, allocations: 103.6 kB / 389.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1029, allocations: 131.4 kB / 389.3 MB, free: 6.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.103, allocations: 24 kB / 389.3 MB, free: 6.316 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.926e-05/0.103, allocations: 28 kB / 389.4 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.1031, allocations: 47.78 kB / 389.4 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.1032, allocations: 131.4 kB / 389.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000312/0.1035, allocations: 267.3 kB / 389.8 MB, free: 5.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1035, allocations: 3.938 kB / 389.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1036, allocations: 4 kB / 389.8 MB, free: 5.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.268e-06/0.1036, allocations: 0 / 389.8 MB, free: 5.844 MB / 286.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.001074/0.1047, allocations: 0.5748 MB / 390.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1047, allocations: 8.031 kB / 390.4 MB, free: 5.207 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.1048, allocations: 24.66 kB / 390.4 MB, free: 5.184 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.1051, allocations: 245.8 kB / 390.7 MB, free: 4.906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.1051, allocations: 16.81 kB / 390.7 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.1052, allocations: 32.27 kB / 390.7 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.1057, allocations: 223.5 kB / 390.9 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.1057, allocations: 8 kB / 390.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.1058, allocations: 7.984 kB / 390.9 MB, free: 4.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.1058, allocations: 8 kB / 390.9 MB, free: 4.609 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005676/0.1064, allocations: 193.6 kB / 391.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.1075, allocations: 0.7175 MB / 391.9 MB, free: 3.641 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007522/0.1082, allocations: 249 kB / 392.1 MB, free: 3.391 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.1085, allocations: 116.8 kB / 392.2 MB, free: 3.273 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.1086, allocations: 4 kB / 392.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004715/0.1091, allocations: 164.3 kB / 392.4 MB, free: 3.098 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.724e-06/0.1091, allocations: 0 / 392.4 MB, free: 3.098 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002579/0.1117, allocations: 1.125 MB / 393.5 MB, free: 1.883 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.1117, allocations: 55.41 kB / 393.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001626/0.1119, allocations: 179.5 kB / 393.7 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.1119, allocations: 33.7 kB / 393.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.112, allocations: 136.7 kB / 393.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.428e-05/0.1121, allocations: 106.5 kB / 394 MB, free: 1.352 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.243e-05/0.1122, allocations: 49.7 kB / 394 MB, free: 1.297 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1123, allocations: 334.8 kB / 394.4 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000293/0.1126, allocations: 91.94 kB / 394.5 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.1129, allocations: 121.5 kB / 394.6 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.1143, allocations: 0.5152 MB / 395.1 MB, free: 212 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1143, allocations: 0 / 395.1 MB, free: 212 kB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007638/0.115, allocations: 335.9 kB / 395.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.1151, allocations: 45.62 kB / 395.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1151, allocations: 0 / 395.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1151, allocations: 0 / 395.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.1155, allocations: 71.89 kB / 395.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.1155, allocations: 4 kB / 395.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.1157, allocations: 23.97 kB / 395.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.578e-05/0.1157, allocations: 12 kB / 395.6 MB, free: 15.71 MB / 302.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.0002598/0.116, allocations: 168.1 kB / 395.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.21e-05/0.1161, allocations: 23.75 kB / 395.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.432e-05/0.1161, allocations: 26.64 kB / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1162, allocations: 8 kB / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1162, allocations: 0 / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1162, allocations: 0 / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.1174, allocations: 0.7227 MB / 396.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1174, allocations: 4 kB / 396.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003174/0.1177, allocations: 67.89 kB / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.1177, allocations: 4 kB / 396.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1178, allocations: 4 kB / 396.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1178, allocations: 4 kB / 396.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1178, allocations: 0 / 396.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1188, allocations: 0.5087 MB / 397.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.139e-05/0.1189, allocations: 96.92 kB / 397.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.1189, allocations: 8 kB / 397.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.1191, allocations: 24.02 kB / 397.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.1192, allocations: 23.97 kB / 397.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.1193, allocations: 7.938 kB / 397.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.1194, allocations: 132.6 kB / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1194, allocations: 0 / 397.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003439/0.1197, allocations: 60 kB / 397.5 MB, free: 13.71 MB / 302.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.0001143/0.1198, allocations: 111.2 kB / 397.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007609/0.1206, allocations: 312 kB / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1206, allocations: 0 / 397.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.121, allocations: 147.9 kB / 398 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.1214, allocations: 55.83 kB / 398.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.124, allocations: 0.8576 MB / 398.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.1243, allocations: 0.7556 MB / 399.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.1244, allocations: 26.27 kB / 399.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.477e-05/0.1245, allocations: 23.44 kB / 399.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1245, allocations: 0 / 399.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of Templates: time 0.006765/0.1312, allocations: 2.808 MB / 402.5 MB, free: 8.574 MB / 302.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)