Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/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(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007439/0.007439, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001437/0.001437, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.767/1.767, allocations: 205.1 MB / 222.6 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.372/0.372, allocations: 39.94 MB / 309.8 MB, free: 9.238 MB / 254.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: ModelicaTest 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.001863/0.001863, allocations: 63.91 kB / 435.8 MB, free: 2.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3354, allocations: 56.88 MB / 492.6 MB, free: 19.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001496/0.3369, allocations: 493 kB / 493.1 MB, free: 19.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005943/0.3375, allocations: 322.1 kB / 493.4 MB, free: 18.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.3375, allocations: 4 kB / 493.4 MB, free: 18.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.099e-05/0.3376, allocations: 0 / 493.4 MB, free: 18.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.3376, allocations: 0 / 493.4 MB, free: 18.99 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:261:3-308:15:writable] Warning: Pure function 'Modelica.Utilities.Strings.findLast' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Files.mo:610:1-680:18:writable] Warning: Pure function 'Modelica.Utilities.Files.splitPathName' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:455:3-480:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.338, allocations: 108.4 kB / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.677e-05/0.338, allocations: 1.062 kB / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.375e-05/0.3381, allocations: 2.375 kB / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.364e-05/0.3381, allocations: 1.125 kB / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.946e-05/0.3381, allocations: 1.062 kB / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-06/0.3381, allocations: 0 / 493.5 MB, free: 18.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.3383, allocations: 123.6 kB / 493.7 MB, free: 18.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-06/0.3383, allocations: 5.453 kB / 493.7 MB, free: 18.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.137e-05/0.3384, allocations: 15.88 kB / 493.7 MB, free: 18.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.3385, allocations: 91.31 kB / 493.8 MB, free: 18.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.3386, allocations: 0 / 493.8 MB, free: 18.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3386, allocations: 0 / 493.8 MB, free: 18.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3386, allocations: 1.125 kB / 493.8 MB, free: 18.86 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002556/0.3388, allocations: 362.4 kB / 494.1 MB, free: 18.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.3389, allocations: 14.2 kB / 494.1 MB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.9e-05/0.3389, allocations: 4.891 kB / 494.1 MB, free: 18.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.633e-05/0.339, allocations: 165.9 kB / 494.3 MB, free: 18.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-06/0.339, allocations: 5.5 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.339, allocations: 1.625 kB / 494.3 MB, free: 18.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.585e-05/0.3391, allocations: 36.77 kB / 494.4 MB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3391, allocations: 1.281 kB / 494.4 MB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-06/0.3391, allocations: 0 / 494.4 MB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3391, allocations: 0 / 494.4 MB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.3391, allocations: 7.062 kB / 494.4 MB, free: 18.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.402e-05/0.3392, allocations: 143.7 kB / 494.5 MB, free: 18.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.452e-05/0.3393, allocations: 20.33 kB / 494.5 MB, free: 18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.288e-05/0.3393, allocations: 11.62 kB / 494.5 MB, free: 17.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.943e-06/0.3393, allocations: 0 / 494.5 MB, free: 17.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.3393, allocations: 61.95 kB / 494.6 MB, free: 17.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.3393, allocations: 0 / 494.6 MB, free: 17.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001442/0.3395, allocations: 65.23 kB / 494.7 MB, free: 17.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.3395, allocations: 78.8 kB / 494.7 MB, free: 17.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.984e-05/0.3395, allocations: 94.59 kB / 494.8 MB, free: 17.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.362e-06/0.3396, allocations: 26.7 kB / 494.9 MB, free: 17.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.295e-05/0.3396, allocations: 84.14 kB / 494.9 MB, free: 17.53 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.3396, allocations: 1.062 kB / 494.9 MB, free: 17.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.3396, allocations: 12.02 kB / 494.9 MB, free: 17.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.3397, allocations: 312.9 kB / 495.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-06/0.3397, allocations: 1.906 kB / 495.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.524e-06/0.3397, allocations: 0.9375 kB / 495.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.972e-05/0.3397, allocations: 68.84 kB / 495.3 MB, free: 17.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3398, allocations: 3.938 kB / 495.3 MB, free: 17.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.396e-05/0.3398, allocations: 63.77 kB / 495.4 MB, free: 17.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.3398, allocations: 36.53 kB / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.3399, allocations: 0 / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.3399, allocations: 0.9375 kB / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.3399, allocations: 5.094 kB / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.858e-06/0.3399, allocations: 0 / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.3399, allocations: 1.094 kB / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.3399, allocations: 1.719 kB / 495.4 MB, free: 17.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 4.851e-05/0.34, allocations: 138.5 kB / 495.6 MB, free: 16.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-06/0.34, allocations: 4.781 kB / 495.6 MB, free: 16.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.167e-06/0.34, allocations: 8.234 kB / 495.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.34, allocations: 0.5156 kB / 495.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.34, allocations: 1.125 kB / 495.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.34, allocations: 4.781 kB / 495.6 MB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.605e-05/0.3401, allocations: 148.2 kB / 495.7 MB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3401, allocations: 1.844 kB / 495.7 MB, free: 16.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3401, allocations: 4 kB / 495.7 MB, free: 16.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3401, allocations: 3.938 kB / 495.7 MB, free: 16.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.3401, allocations: 1.828 kB / 495.7 MB, free: 16.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3401, allocations: 0 / 495.7 MB, free: 16.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3401, allocations: 5.062 kB / 495.7 MB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.711e-05/0.3402, allocations: 89.34 kB / 495.8 MB, free: 16.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.358e-05/0.3402, allocations: 81.98 kB / 495.9 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.3402, allocations: 1.219 kB / 495.9 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-06/0.3402, allocations: 5.156 kB / 495.9 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.435e-05/0.3403, allocations: 0.75 kB / 495.9 MB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.3403, allocations: 1.312 kB / 495.9 MB, free: 16.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.181e-05/0.3403, allocations: 77.39 kB / 496 MB, free: 16.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3403, allocations: 0 / 496 MB, free: 16.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.3405, allocations: 40.97 kB / 496 MB, free: 16.36 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0003738/0.3409, allocations: 224.7 kB / 496.3 MB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.089e-05/0.341, allocations: 65.59 kB / 496.3 MB, free: 16.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.341, allocations: 1.531 kB / 496.3 MB, free: 16.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.798e-05/0.341, allocations: 55.11 kB / 496.4 MB, free: 16.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.3412, allocations: 1.25 kB / 496.4 MB, free: 16.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001499/0.3413, allocations: 93.8 kB / 496.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.393e-05/0.3414, allocations: 0.6714 MB / 497.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.851e-06/0.3414, allocations: 0.5625 kB / 497.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.353e-06/0.3415, allocations: 7.438 kB / 497.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3415, allocations: 1.438 kB / 497.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of Templates: time 0.003155/0.3446, allocations: 0.881 MB / 498 MB, free: 15.13 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestFiles.pipe 2>&1)