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.001157/0.001157, allocations: 103.5 kB / 15.99 MB, free: 5.895 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.001147/0.001147, allocations: 191.8 kB / 16.91 MB, free: 5.746 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.436/1.436, allocations: 205.1 MB / 222.8 MB, free: 4.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03958/0.03958, allocations: 8.103 MB / 278.2 MB, free: 13.32 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.001505/0.001505, allocations: 71.91 kB / 337.3 MB, free: 26.84 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09298, allocations: 48.3 MB / 385.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.004371/0.09741, allocations: 2.439 MB / 388.1 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.09876, allocations: 0.632 MB / 388.7 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002383/0.09905, allocations: 7.938 kB / 388.7 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.09928, allocations: 27.78 kB / 388.7 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.09953, allocations: 67.41 kB / 388.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003139/0.09985, allocations: 55.94 kB / 388.9 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.1003, allocations: 294.8 kB / 389.2 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.1006, allocations: 97.97 kB / 389.3 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.1008, allocations: 119.6 kB / 389.4 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.101, allocations: 119.5 kB / 389.5 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.833e-05/0.101, allocations: 20 kB / 389.5 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.01e-05/0.1011, allocations: 24 kB / 389.5 MB, free: 6.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.401e-05/0.1012, allocations: 55.77 kB / 389.6 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.1013, allocations: 127.4 kB / 389.7 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.1016, allocations: 207.7 kB / 389.9 MB, free: 6.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1017, allocations: 0 / 389.9 MB, free: 6.188 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1017, allocations: 0 / 389.9 MB, free: 6.188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1017, allocations: 4 kB / 389.9 MB, free: 6.184 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.001156/0.1028, allocations: 0.567 MB / 390.5 MB, free: 5.562 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1029, allocations: 8.031 kB / 390.5 MB, free: 5.555 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.088e-05/0.103, allocations: 28.66 kB / 390.5 MB, free: 5.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.1033, allocations: 236.6 kB / 390.7 MB, free: 5.258 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.755e-05/0.1034, allocations: 32.73 kB / 390.8 MB, free: 5.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.1034, allocations: 28.28 kB / 390.8 MB, free: 5.199 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005537/0.104, allocations: 219.5 kB / 391 MB, free: 4.977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.104, allocations: 3.984 kB / 391 MB, free: 4.973 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.644e-05/0.104, allocations: 8 kB / 391 MB, free: 4.965 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.1041, allocations: 4 kB / 391 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000559/0.1046, allocations: 205.6 kB / 391.2 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1058, allocations: 0.7175 MB / 392 MB, free: 3.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007207/0.1065, allocations: 244.6 kB / 392.2 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.1068, allocations: 120.8 kB / 392.3 MB, free: 3.613 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.1069, allocations: 4 kB / 392.3 MB, free: 3.609 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004766/0.1074, allocations: 164.3 kB / 392.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.465e-06/0.1074, allocations: 0 / 392.5 MB, free: 3.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002582/0.11, allocations: 1.13 MB / 393.6 MB, free: 2.219 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.11, allocations: 55.41 kB / 393.7 MB, free: 2.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.1102, allocations: 183.4 kB / 393.8 MB, free: 1.965 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.1102, allocations: 29.7 kB / 393.9 MB, free: 1.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1104, allocations: 144.7 kB / 394 MB, free: 1.785 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.965e-05/0.1105, allocations: 102.5 kB / 394.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.562e-05/0.1106, allocations: 49.7 kB / 394.2 MB, free: 1.629 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1107, allocations: 334.8 kB / 394.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.111, allocations: 91.86 kB / 394.6 MB, free: 1.203 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002971/0.1113, allocations: 121.5 kB / 394.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1127, allocations: 0.5155 MB / 395.2 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1127, allocations: 8 kB / 395.2 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000723/0.1134, allocations: 335.8 kB / 395.5 MB, free: 196 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.376e-05/0.1135, allocations: 37.62 kB / 395.6 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1135, allocations: 0 / 395.6 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1135, allocations: 4 kB / 395.6 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.1138, allocations: 71.89 kB / 395.7 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.1138, allocations: 8.016 kB / 395.7 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.114, allocations: 23.97 kB / 395.7 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.1141, allocations: 12 kB / 395.7 MB, free: 32 kB / 286.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.0002546/0.1143, allocations: 163.6 kB / 395.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.95e-05/0.1144, allocations: 23.73 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.663e-05/0.1145, allocations: 26.66 kB / 395.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.1145, allocations: 4 kB / 395.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1145, allocations: 0 / 395.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1145, allocations: 7.969 kB / 395.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.1157, allocations: 0.7069 MB / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1157, allocations: 0 / 396.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003311/0.116, allocations: 75.95 kB / 396.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.116, allocations: 0 / 396.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.1161, allocations: 8 kB / 396.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1161, allocations: 3.984 kB / 396.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1161, allocations: 4 kB / 396.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.1171, allocations: 0.5006 MB / 397.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.384e-05/0.1172, allocations: 96.86 kB / 397.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.1172, allocations: 4 kB / 397.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.1174, allocations: 28.02 kB / 397.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.06e-05/0.1175, allocations: 27.97 kB / 397.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.1176, allocations: 19.92 kB / 397.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.1177, allocations: 124.7 kB / 397.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1177, allocations: 0 / 397.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000315/0.118, allocations: 60 kB / 397.6 MB, free: 14.05 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.0001257/0.1181, allocations: 111.1 kB / 397.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.1189, allocations: 316 kB / 398 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.1189, allocations: 4 kB / 398 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00031/0.1192, allocations: 135.8 kB / 398.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.1196, allocations: 47.83 kB / 398.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1222, allocations: 0.9725 MB / 399.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.1225, allocations: 0.7477 MB / 399.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.405e-05/0.1226, allocations: 23.44 kB / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1226, allocations: 4 kB / 399.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of Templates: time 0.005297/0.1279, allocations: 3.025 MB / 402.9 MB, free: 8.602 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)