Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002362/0.002362, allocations: 185.9 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.487/1.487, allocations: 194.2 MB / 210.9 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03766/0.03766, allocations: 8.112 MB / 263.3 MB, free: 12.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001734/0.001734, allocations: 124.1 kB / 309.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 63.91 kB / 365.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1941/0.1954, allocations: 45.26 MB / 410.7 MB, free: 66.83 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.002875/0.1983, allocations: 2.434 MB / 413.1 MB, free: 64.38 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008553/0.1992, allocations: 0.6553 MB / 413.7 MB, free: 63.72 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.1993, allocations: 7.938 kB / 413.8 MB, free: 63.71 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.1994, allocations: 27.78 kB / 413.8 MB, free: 63.68 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.1996, allocations: 55.55 kB / 413.8 MB, free: 63.63 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000193/0.1998, allocations: 63.88 kB / 413.9 MB, free: 63.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.2, allocations: 286.8 kB / 414.2 MB, free: 63.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2001, allocations: 85.89 kB / 414.3 MB, free: 63.2 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.526e-05/0.2002, allocations: 111.6 kB / 414.4 MB, free: 63.09 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.2003, allocations: 119.5 kB / 414.5 MB, free: 62.97 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.2004, allocations: 19.94 kB / 414.5 MB, free: 62.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.41e-05/0.2004, allocations: 16 kB / 414.5 MB, free: 62.94 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.2004, allocations: 55.75 kB / 414.6 MB, free: 62.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.679e-05/0.2005, allocations: 115.4 kB / 414.7 MB, free: 62.77 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.2007, allocations: 261.2 kB / 414.9 MB, free: 62.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2007, allocations: 0 / 414.9 MB, free: 62.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2007, allocations: 0 / 414.9 MB, free: 62.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.2007, allocations: 0 / 414.9 MB, free: 62.52 MB / 314.7 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.0007985/0.2015, allocations: 0.5895 MB / 415.5 MB, free: 61.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2016, allocations: 11.97 kB / 415.5 MB, free: 61.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.2016, allocations: 24.66 kB / 415.6 MB, free: 61.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.2018, allocations: 245.4 kB / 415.8 MB, free: 61.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.2019, allocations: 12.81 kB / 415.8 MB, free: 61.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.2019, allocations: 31.84 kB / 415.9 MB, free: 61.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.2023, allocations: 223.2 kB / 416.1 MB, free: 61.29 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2023, allocations: 0 / 416.1 MB, free: 61.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.2024, allocations: 16 kB / 416.1 MB, free: 61.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2024, allocations: 4 kB / 416.1 MB, free: 61.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005002/0.2029, allocations: 197.5 kB / 416.3 MB, free: 61.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007605/0.2037, allocations: 0.6699 MB / 417 MB, free: 60.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006065/0.2043, allocations: 254.5 kB / 417.2 MB, free: 60.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002601/0.2045, allocations: 119 kB / 417.3 MB, free: 59.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.2046, allocations: 4 kB / 417.3 MB, free: 59.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.205, allocations: 181.1 kB / 417.5 MB, free: 59.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=27): time 1.593e-06/0.205, allocations: 0 / 417.5 MB, free: 59.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002054/0.207, allocations: 1.184 MB / 418.7 MB, free: 58.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.2071, allocations: 63.41 kB / 418.7 MB, free: 58.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.2072, allocations: 183 kB / 418.9 MB, free: 58.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.2072, allocations: 29.7 kB / 419 MB, free: 58.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.14e-05/0.2073, allocations: 140.7 kB / 419.1 MB, free: 58.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.824e-05/0.2073, allocations: 110.4 kB / 419.2 MB, free: 57.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-05/0.2074, allocations: 53.7 kB / 419.3 MB, free: 57.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.625e-05/0.2074, allocations: 334.8 kB / 419.6 MB, free: 57.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.2077, allocations: 104.2 kB / 419.7 MB, free: 57.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.208, allocations: 127.4 kB / 419.8 MB, free: 57.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00115/0.2091, allocations: 0.5506 MB / 420.4 MB, free: 56.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2091, allocations: 4 kB / 420.4 MB, free: 56.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006029/0.2097, allocations: 366 kB / 420.7 MB, free: 56.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.2098, allocations: 37.69 kB / 420.8 MB, free: 56.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2098, allocations: 0 / 420.8 MB, free: 56.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2098, allocations: 4 kB / 420.8 MB, free: 56.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002704/0.2101, allocations: 75.95 kB / 420.8 MB, free: 56.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.2101, allocations: 4 kB / 420.8 MB, free: 56.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.2103, allocations: 23.97 kB / 420.9 MB, free: 56.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.887e-05/0.2103, allocations: 12 kB / 420.9 MB, free: 56.23 MB / 314.7 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * 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.0002081/0.2105, allocations: 175.8 kB / 421 MB, free: 56.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.202e-05/0.2106, allocations: 27.75 kB / 421.1 MB, free: 56.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.879e-05/0.2107, allocations: 22.66 kB / 421.1 MB, free: 56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2107, allocations: 4 kB / 421.1 MB, free: 56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2107, allocations: 0 / 421.1 MB, free: 56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2107, allocations: 7.984 kB / 421.1 MB, free: 55.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009665/0.2117, allocations: 0.7837 MB / 421.9 MB, free: 55.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2117, allocations: 0 / 421.9 MB, free: 55.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.212, allocations: 75.95 kB / 422 MB, free: 55.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.212, allocations: 0 / 422 MB, free: 55.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.212, allocations: 8 kB / 422 MB, free: 55.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.212, allocations: 0 / 422 MB, free: 55.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.212, allocations: 7.938 kB / 422 MB, free: 55.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003924/0.2159, allocations: 2.446 MB / 424.4 MB, free: 52.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.216, allocations: 100.8 kB / 424.5 MB, free: 52.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.216, allocations: 12 kB / 424.5 MB, free: 52.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.2162, allocations: 27.97 kB / 424.6 MB, free: 52.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.087e-05/0.2163, allocations: 27.97 kB / 424.6 MB, free: 52.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.2163, allocations: 8 kB / 424.6 MB, free: 52.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.663e-05/0.2164, allocations: 139.1 kB / 424.7 MB, free: 52.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2164, allocations: 0 / 424.7 MB, free: 52.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003796/0.2168, allocations: 88 kB / 424.8 MB, free: 52.05 MB / 314.7 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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.558e-05/0.2169, allocations: 107.2 kB / 424.9 MB, free: 51.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006034/0.2175, allocations: 327.1 kB / 425.2 MB, free: 51.6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2175, allocations: 3.938 kB / 425.2 MB, free: 51.6 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002899/0.2178, allocations: 151.7 kB / 425.4 MB, free: 51.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.2183, allocations: 49 kB / 425.4 MB, free: 51.4 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.2207, allocations: 1.196 MB / 426.6 MB, free: 50.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001789/0.2209, allocations: 0.76 MB / 427.4 MB, free: 49.36 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000111/0.221, allocations: 26.28 kB / 427.4 MB, free: 49.33 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-05/0.2211, allocations: 23.44 kB / 427.4 MB, free: 49.31 MB / 314.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2211, allocations: 3.938 kB / 427.4 MB, free: 49.3 MB / 314.7 MB Notification: Performance of Templates: time 0.005682/0.2268, allocations: 3.347 MB / 430.8 MB, free: 46.02 MB / 314.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)