Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001969/0.00197, 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.003489/0.00349, allocations: 193 kB / 16.13 MB, free: 6.652 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.771/1.771, allocations: 205.1 MB / 222 MB, free: 4.711 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.3852/0.3852, allocations: 39.94 MB / 309.3 MB, free: 9.293 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.001352/0.001352, allocations: 64.47 kB / 376.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1549, allocations: 56.88 MB / 433.8 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002136/0.1571, allocations: 0.5402 MB / 434.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006815/0.1578, allocations: 209 kB / 434.5 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.82e-05/0.1579, allocations: 3.938 kB / 434.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.492e-05/0.1579, allocations: 0 / 434.5 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.614e-06/0.1579, allocations: 4 kB / 434.5 MB, free: 3.375 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.1582, allocations: 43.83 kB / 434.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.668e-05/0.1583, allocations: 0 / 434.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.81e-05/0.1583, allocations: 0 / 434.6 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.783e-05/0.1583, allocations: 4 kB / 434.6 MB, free: 3.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.22e-05/0.1584, allocations: 4 kB / 434.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-06/0.1584, allocations: 0 / 434.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1585, allocations: 47.95 kB / 434.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-06/0.1585, allocations: 0 / 434.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.378e-05/0.1586, allocations: 11.92 kB / 434.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.1587, allocations: 43.94 kB / 434.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1587, allocations: 0 / 434.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1587, allocations: 0 / 434.7 MB, free: 3.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1587, allocations: 0 / 434.7 MB, free: 3.223 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.0003323/0.1591, allocations: 349.3 kB / 435 MB, free: 2.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.1591, allocations: 12.03 kB / 435.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.404e-05/0.1592, allocations: 0.9375 kB / 435.1 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.368e-05/0.1593, allocations: 168.4 kB / 435.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1593, allocations: 384 / 435.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.1593, allocations: 384 / 435.2 MB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.626e-05/0.1594, allocations: 34.19 kB / 435.3 MB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.1594, allocations: 4.188 kB / 435.3 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.1594, allocations: 3.938 kB / 435.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1594, allocations: 0 / 435.3 MB, free: 2.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.647e-05/0.1594, allocations: 4 kB / 435.3 MB, free: 2.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.1596, allocations: 145.7 kB / 435.4 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.954e-05/0.1596, allocations: 18.61 kB / 435.4 MB, free: 2.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.1596, allocations: 4.859 kB / 435.4 MB, free: 2.332 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.1597, allocations: 3.938 kB / 435.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.739e-05/0.1597, allocations: 68.25 kB / 435.5 MB, free: 2.246 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1597, allocations: 0 / 435.5 MB, free: 2.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001696/0.1599, allocations: 75.25 kB / 435.6 MB, free: 2.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1599, allocations: 77.11 kB / 435.6 MB, free: 2.066 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.051e-05/0.16, allocations: 89.86 kB / 435.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.16, allocations: 25.7 kB / 435.8 MB, free: 1.938 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.399e-05/0.16, allocations: 80.14 kB / 435.8 MB, free: 1.855 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.1601, allocations: 0 / 435.8 MB, free: 1.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.1601, allocations: 17.7 kB / 435.9 MB, free: 1.832 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1602, allocations: 311 kB / 436.2 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.1602, allocations: 4 kB / 436.2 MB, free: 1.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.504e-06/0.1602, allocations: 11.94 kB / 436.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.9e-05/0.1603, allocations: 60.2 kB / 436.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1603, allocations: 0 / 436.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.199e-05/0.1604, allocations: 63.39 kB / 436.3 MB, free: 1.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.1604, allocations: 33.7 kB / 436.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.1604, allocations: 0 / 436.3 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1604, allocations: 3.938 kB / 436.3 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.1604, allocations: 4.094 kB / 436.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.1604, allocations: 0 / 436.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.511e-05/0.1605, allocations: 0 / 436.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.1605, allocations: 4 kB / 436.3 MB, free: 1.305 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 8.256e-05/0.1606, allocations: 139.5 kB / 436.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1606, allocations: 0 / 436.5 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.257e-05/0.1606, allocations: 11.05 kB / 436.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1606, allocations: 0 / 436.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1606, allocations: 0 / 436.5 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1606, allocations: 8 kB / 436.5 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.589e-05/0.1607, allocations: 145.6 kB / 436.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1607, allocations: 0 / 436.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1607, allocations: 0 / 436.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1607, allocations: 0 / 436.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1607, allocations: 7.922 kB / 436.6 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1608, allocations: 4 kB / 436.7 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1608, allocations: 0 / 436.7 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.633e-05/0.1609, allocations: 90.78 kB / 436.7 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.1609, allocations: 85.09 kB / 436.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1609, allocations: 3.938 kB / 436.8 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.736e-06/0.1609, allocations: 0 / 436.8 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.187e-05/0.1609, allocations: 0 / 436.8 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.161, allocations: 3.984 kB / 436.8 MB, free: 0.707 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.578e-05/0.161, allocations: 79.28 kB / 436.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.161, allocations: 0 / 436.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.1612, allocations: 20 kB / 436.9 MB, free: 0.6094 MB / 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.0003897/0.1616, allocations: 196.1 kB / 437.1 MB, free: 432 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.1617, allocations: 67.28 kB / 437.2 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1618, allocations: 0 / 437.2 MB, free: 352 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.081e-05/0.1618, allocations: 63.39 kB / 437.2 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.1619, allocations: 4 kB / 437.2 MB, free: 272 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00019/0.1621, allocations: 74.7 kB / 437.3 MB, free: 168 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002692/0.1624, allocations: 0.6731 MB / 438 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.1624, allocations: 0 / 438 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-06/0.1624, allocations: 7.438 kB / 438 MB, free: 15.46 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1624, allocations: 128 / 438 MB, free: 15.46 MB / 382.1 MB Notification: Performance of Templates: time 0.002937/0.1654, allocations: 0.5787 MB / 438.6 MB, free: 14.88 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1)