Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002066/0.002066, allocations: 190.3 kB / 16.25 MB, free: 6.629 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.68/1.68, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.3351/0.3351, allocations: 39.93 MB / 309.4 MB, free: 9.359 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.001482/0.001482, allocations: 71.84 kB / 377.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1418, allocations: 56.89 MB / 434 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001756/0.1436, allocations: 0.5363 MB / 434.5 MB, free: 3.496 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006709/0.1443, allocations: 256.8 kB / 434.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.143e-05/0.1443, allocations: 0 / 434.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.941e-05/0.1444, allocations: 0 / 434.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-06/0.1444, allocations: 4 kB / 434.8 MB, free: 3.242 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003872/0.1448, allocations: 47.91 kB / 434.8 MB, free: 3.195 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.523e-05/0.1448, allocations: 7.984 kB / 434.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.865e-05/0.1449, allocations: 3.984 kB / 434.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.936e-05/0.1449, allocations: 4 kB / 434.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.908e-05/0.145, allocations: 0 / 434.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.145, allocations: 0 / 434.8 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001568/0.1451, allocations: 59.95 kB / 434.9 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.065e-06/0.1452, allocations: 3.938 kB / 434.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.1452, allocations: 0 / 434.9 MB, free: 3.117 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.1453, allocations: 63.86 kB / 435 MB, free: 3.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1454, allocations: 0 / 435 MB, free: 3.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1454, allocations: 4 kB / 435 MB, free: 3.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1454, allocations: 0 / 435 MB, free: 3.051 MB / 366.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.0005115/0.1459, allocations: 349.3 kB / 435.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1459, allocations: 11.89 kB / 435.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.146, allocations: 4.938 kB / 435.3 MB, free: 2.637 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.1461, allocations: 164.4 kB / 435.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1461, allocations: 384 / 435.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.1462, allocations: 384 / 435.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.152e-05/0.1463, allocations: 38.25 kB / 435.5 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-06/0.1463, allocations: 192 / 435.5 MB, free: 2.395 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.998e-06/0.1463, allocations: 3.938 kB / 435.5 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1463, allocations: 0 / 435.5 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.979e-05/0.1463, allocations: 3.938 kB / 435.5 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002115/0.1465, allocations: 149.6 kB / 435.7 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.066e-05/0.1466, allocations: 18.58 kB / 435.7 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.404e-05/0.1466, allocations: 4.859 kB / 435.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-06/0.1466, allocations: 4 kB / 435.7 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.901e-05/0.1467, allocations: 64.34 kB / 435.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1467, allocations: 0 / 435.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001854/0.1469, allocations: 75.12 kB / 435.8 MB, free: 1.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.1469, allocations: 77.11 kB / 435.9 MB, free: 1.895 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.834e-05/0.147, allocations: 93.86 kB / 436 MB, free: 1.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.147, allocations: 25.7 kB / 436 MB, free: 1.762 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.147, allocations: 80.27 kB / 436.1 MB, free: 1.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.1471, allocations: 4 kB / 436.1 MB, free: 1.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.1471, allocations: 17.7 kB / 436.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1472, allocations: 310.8 kB / 436.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.916e-06/0.1472, allocations: 0 / 436.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.303e-06/0.1472, allocations: 4 kB / 436.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.639e-05/0.1473, allocations: 60.27 kB / 436.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1473, allocations: 4 kB / 436.5 MB, free: 1.258 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.626e-05/0.1474, allocations: 67.39 kB / 436.6 MB, free: 1.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.1474, allocations: 33.7 kB / 436.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1474, allocations: 0 / 436.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1475, allocations: 3.938 kB / 436.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.1475, allocations: 0 / 436.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.1475, allocations: 0 / 436.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.689e-05/0.1475, allocations: 3.984 kB / 436.6 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.1475, allocations: 0 / 436.6 MB, free: 1.133 MB / 366.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 9.305e-05/0.1476, allocations: 135.5 kB / 436.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.786e-06/0.1476, allocations: 8.016 kB / 436.8 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.1476, allocations: 7.062 kB / 436.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.1476, allocations: 0 / 436.8 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1476, allocations: 4 kB / 436.8 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1477, allocations: 4 kB / 436.8 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001038/0.1478, allocations: 145.7 kB / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1478, allocations: 0 / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-07/0.1478, allocations: 0 / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.1478, allocations: 0 / 436.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1478, allocations: 15.86 kB / 436.9 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1478, allocations: 0 / 436.9 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1478, allocations: 4 kB / 436.9 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.215e-05/0.1479, allocations: 90.78 kB / 437 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.148, allocations: 81.09 kB / 437.1 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.148, allocations: 3.938 kB / 437.1 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.148, allocations: 0 / 437.1 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.103e-05/0.148, allocations: 0 / 437.1 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.148, allocations: 4 kB / 437.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.971e-05/0.1481, allocations: 79.31 kB / 437.2 MB, free: 464 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1481, allocations: 0 / 437.2 MB, free: 464 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.1483, allocations: 24 kB / 437.2 MB, free: 440 kB / 366.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.0005127/0.1488, allocations: 272.3 kB / 437.5 MB, free: 176 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.149, allocations: 63.41 kB / 437.5 MB, free: 100 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.149, allocations: 0 / 437.5 MB, free: 100 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.149, allocations: 59.34 kB / 437.6 MB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1491, allocations: 11.22 kB / 437.6 MB, free: 20 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003089/0.1495, allocations: 88.91 kB / 437.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.1498, allocations: 0.669 MB / 438.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.127e-06/0.1498, allocations: 0 / 438.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.502e-05/0.1499, allocations: 7.438 kB / 438.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1499, allocations: 4.125 kB / 438.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of Templates: time 0.003618/0.1535, allocations: 0.7892 MB / 439.2 MB, free: 14.41 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.pipe 2>&1)