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.001722/0.001729, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002038/0.002038, allocations: 193.8 kB / 16.25 MB, free: 6.617 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.612/1.612, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03943/0.03943, allocations: 8.106 MB / 277.6 MB, free: 13.34 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.001351/0.001351, allocations: 67.91 kB / 336.7 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1031, allocations: 48.3 MB / 385 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003794/0.1069, allocations: 2.446 MB / 387.4 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.108, allocations: 0.632 MB / 388.1 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1081, allocations: 4 kB / 388.1 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.1083, allocations: 27.78 kB / 388.1 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.1085, allocations: 63.53 kB / 388.2 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1087, allocations: 63.81 kB / 388.2 MB, free: 7.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003339/0.1091, allocations: 286.8 kB / 388.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.1093, allocations: 102 kB / 388.6 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001358/0.1094, allocations: 107.6 kB / 388.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/0.1096, allocations: 127.5 kB / 388.8 MB, free: 6.633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.1096, allocations: 24 kB / 388.9 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.918e-05/0.1097, allocations: 24 kB / 388.9 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.506e-05/0.1097, allocations: 59.7 kB / 388.9 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000142/0.1099, allocations: 123.4 kB / 389.1 MB, free: 6.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002748/0.1102, allocations: 275.2 kB / 389.3 MB, free: 6.137 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1102, allocations: 0 / 389.3 MB, free: 6.137 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1102, allocations: 0 / 389.3 MB, free: 6.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.1102, allocations: 0 / 389.3 MB, free: 6.137 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.001115/0.1113, allocations: 0.5709 MB / 389.9 MB, free: 5.512 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1114, allocations: 8.031 kB / 389.9 MB, free: 5.504 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.952e-05/0.1114, allocations: 28.66 kB / 389.9 MB, free: 5.477 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.1117, allocations: 248.5 kB / 390.2 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.1118, allocations: 24.75 kB / 390.2 MB, free: 5.172 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.555e-05/0.1118, allocations: 24.28 kB / 390.2 MB, free: 5.148 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.1123, allocations: 227.5 kB / 390.4 MB, free: 4.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.1124, allocations: 4 kB / 390.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.1124, allocations: 8 kB / 390.5 MB, free: 4.906 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1124, allocations: 4 kB / 390.5 MB, free: 4.902 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005294/0.1129, allocations: 193.6 kB / 390.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.114, allocations: 0.7292 MB / 391.4 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006847/0.1147, allocations: 236.7 kB / 391.6 MB, free: 3.684 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.115, allocations: 124.8 kB / 391.7 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.115, allocations: 0 / 391.7 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003918/0.1154, allocations: 168.2 kB / 391.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.362e-06/0.1154, allocations: 0 / 391.9 MB, free: 3.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002342/0.1178, allocations: 1.126 MB / 393 MB, free: 2.168 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1178, allocations: 59.39 kB / 393.1 MB, free: 2.098 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.118, allocations: 175.5 kB / 393.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.118, allocations: 33.69 kB / 393.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.876e-05/0.1181, allocations: 140.7 kB / 393.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.002e-05/0.1182, allocations: 106.5 kB / 393.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.878e-05/0.1183, allocations: 45.7 kB / 393.6 MB, free: 1.582 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1184, allocations: 334.8 kB / 393.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002668/0.1187, allocations: 87.94 kB / 394 MB, free: 1.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002826/0.119, allocations: 129.4 kB / 394.1 MB, free: 1.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.1203, allocations: 0.5194 MB / 394.6 MB, free: 496 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1203, allocations: 0 / 394.6 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006788/0.121, allocations: 335.9 kB / 395 MB, free: 148 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.934e-05/0.121, allocations: 37.64 kB / 395 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1211, allocations: 0 / 395 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1211, allocations: 4 kB / 395 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.1214, allocations: 71.89 kB / 395.1 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1214, allocations: 3.984 kB / 395.1 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002084/0.1216, allocations: 24.02 kB / 395.1 MB, free: 0 / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.1217, allocations: 12.05 kB / 395.1 MB, free: 15.98 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.0002271/0.1219, allocations: 159.6 kB / 395.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.1219, allocations: 27.69 kB / 395.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.18e-05/0.122, allocations: 30.64 kB / 395.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.122, allocations: 0 / 395.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.122, allocations: 4 kB / 395.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.122, allocations: 0 / 395.3 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.1231, allocations: 0.7108 MB / 396 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1232, allocations: 0 / 396 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003111/0.1235, allocations: 75.89 kB / 396.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.1235, allocations: 0 / 396.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.1235, allocations: 12.06 kB / 396.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1235, allocations: 0 / 396.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1235, allocations: 0 / 396.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009438/0.1245, allocations: 0.5006 MB / 396.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-05/0.1246, allocations: 101 kB / 396.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.658e-05/0.1246, allocations: 4 kB / 396.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.1248, allocations: 23.97 kB / 396.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.1249, allocations: 24.06 kB / 396.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.1249, allocations: 11.92 kB / 396.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1251, allocations: 140.6 kB / 396.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1251, allocations: 0 / 396.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003032/0.1254, allocations: 60 kB / 397 MB, free: 14 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.0001214/0.1255, allocations: 103.2 kB / 397.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007274/0.1262, allocations: 316 kB / 397.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1262, allocations: 3.938 kB / 397.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003276/0.1266, allocations: 143.8 kB / 397.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.127, allocations: 55.02 kB / 397.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.1295, allocations: 0.9396 MB / 398.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.1298, allocations: 0.7556 MB / 399.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.1299, allocations: 22.3 kB / 399.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.13, allocations: 23.38 kB / 399.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.13, allocations: 0 / 399.3 MB, free: 11.58 MB / 302.1 MB Notification: Performance of Templates: time 0.005757/0.1358, allocations: 2.733 MB / 402.1 MB, free: 8.867 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)