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.001028/0.001028, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001085/0.001085, allocations: 193.8 kB / 16.13 MB, free: 6.656 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.277/1.277, allocations: 205.1 MB / 222 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03661/0.03661, allocations: 8.104 MB / 277.4 MB, free: 13.36 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.001209/0.001209, allocations: 67.92 kB / 336.5 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.082, allocations: 48.29 MB / 384.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.003401/0.08544, allocations: 2.446 MB / 387.2 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.08647, allocations: 0.6438 MB / 387.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.08661, allocations: 7.938 kB / 387.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.08678, allocations: 23.78 kB / 387.9 MB, free: 7.477 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.08692, allocations: 55.55 kB / 388 MB, free: 7.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002191/0.08715, allocations: 51.94 kB / 388 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.08741, allocations: 290.7 kB / 388.3 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.0876, allocations: 85.89 kB / 388.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.08771, allocations: 95.64 kB / 388.5 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.08784, allocations: 123.4 kB / 388.6 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.08788, allocations: 16 kB / 388.6 MB, free: 6.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.723e-05/0.08793, allocations: 16 kB / 388.6 MB, free: 6.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.08798, allocations: 47.78 kB / 388.7 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.08809, allocations: 127.3 kB / 388.8 MB, free: 6.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.08832, allocations: 251.3 kB / 389.1 MB, free: 6.332 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.08833, allocations: 4 kB / 389.1 MB, free: 6.328 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.08833, allocations: 0 / 389.1 MB, free: 6.328 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.08834, allocations: 0 / 389.1 MB, free: 6.328 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.0009429/0.08929, allocations: 0.5787 MB / 389.6 MB, free: 5.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.08934, allocations: 8.031 kB / 389.6 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/0.0894, allocations: 24.66 kB / 389.7 MB, free: 5.664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.08966, allocations: 252.5 kB / 389.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.08969, allocations: 12.81 kB / 389.9 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.812e-05/0.08974, allocations: 28.28 kB / 390 MB, free: 5.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.09023, allocations: 219.5 kB / 390.2 MB, free: 5.117 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.09026, allocations: 11.97 kB / 390.2 MB, free: 5.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.09029, allocations: 16 kB / 390.2 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.09031, allocations: 4 kB / 390.2 MB, free: 5.086 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005394/0.09085, allocations: 197.6 kB / 390.4 MB, free: 4.895 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009718/0.09183, allocations: 0.7137 MB / 391.1 MB, free: 4.117 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006714/0.09252, allocations: 251 kB / 391.3 MB, free: 3.863 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002721/0.0928, allocations: 112.8 kB / 391.5 MB, free: 3.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.09283, allocations: 4 kB / 391.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004268/0.09326, allocations: 164.3 kB / 391.6 MB, free: 3.574 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.876e-06/0.09327, allocations: 0 / 391.6 MB, free: 3.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.002215/0.09549, allocations: 1.13 MB / 392.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.09554, allocations: 63.34 kB / 392.8 MB, free: 2.281 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.0957, allocations: 179.5 kB / 393 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.09573, allocations: 33.7 kB / 393 MB, free: 2.059 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.288e-05/0.09582, allocations: 136.7 kB / 393.2 MB, free: 1.922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.085e-05/0.09589, allocations: 98.55 kB / 393.3 MB, free: 1.824 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.314e-05/0.09598, allocations: 53.7 kB / 393.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.09608, allocations: 330.8 kB / 393.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.09635, allocations: 95.92 kB / 393.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.09662, allocations: 121.5 kB / 393.8 MB, free: 1.215 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.09782, allocations: 0.5116 MB / 394.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.09784, allocations: 0 / 394.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006628/0.0985, allocations: 339.8 kB / 394.7 MB, free: 344 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.09856, allocations: 37.62 kB / 394.7 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.09857, allocations: 4 kB / 394.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.3e-05/0.09861, allocations: 0 / 394.7 MB, free: 296 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002849/0.0989, allocations: 75.83 kB / 394.8 MB, free: 220 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.09892, allocations: 4 kB / 394.8 MB, free: 216 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.09912, allocations: 28 kB / 394.8 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.09915, allocations: 4 kB / 394.8 MB, free: 184 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.0001967/0.09935, allocations: 174 kB / 395 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.478e-05/0.09941, allocations: 19.8 kB / 395 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.406e-05/0.09947, allocations: 26.66 kB / 395.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.09948, allocations: 4 kB / 395.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.09949, allocations: 0 / 395.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.0995, allocations: 3.938 kB / 395.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1005, allocations: 0.7147 MB / 395.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1005, allocations: 4 kB / 395.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.1008, allocations: 63.89 kB / 395.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1009, allocations: 12 kB / 395.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.1009, allocations: 7.984 kB / 395.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1009, allocations: 8 kB / 395.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1009, allocations: 0 / 395.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008948/0.1018, allocations: 0.5045 MB / 396.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.1019, allocations: 88.92 kB / 396.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.1019, allocations: 8 kB / 396.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.1021, allocations: 24.02 kB / 396.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.1022, allocations: 23.95 kB / 396.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1022, allocations: 19.94 kB / 396.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.247e-05/0.1023, allocations: 128.7 kB / 396.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1023, allocations: 0 / 396.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002963/0.1026, allocations: 60 kB / 396.7 MB, free: 14.19 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 9.883e-05/0.1028, allocations: 111.2 kB / 396.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006191/0.1034, allocations: 292.1 kB / 397.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1034, allocations: 0 / 397.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003013/0.1037, allocations: 143.8 kB / 397.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.1041, allocations: 43.91 kB / 397.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.1064, allocations: 0.9552 MB / 398.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.1067, allocations: 0.7594 MB / 399 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.1068, allocations: 26.28 kB / 399 MB, free: 11.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.1069, allocations: 19.44 kB / 399.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1069, allocations: 0 / 399.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Templates: time 0.005203/0.1121, allocations: 2.593 MB / 401.6 MB, free: 9.203 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)