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.0008886/0.0008885, allocations: 91.44 kB / 15.06 MB, free: 1.078 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.0009496/0.0009497, allocations: 176.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.89/1.89, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.3823/0.3823, allocations: 39.99 MB / 310.4 MB, free: 9.949 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.0006307/0.0006309, allocations: 12 kB / 378.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1605, allocations: 57.96 MB / 436.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006102/0.1612, allocations: 210.1 kB / 437 MB, free: 2.379 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004524/0.1617, allocations: 195.6 kB / 437.2 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.068e-05/0.1617, allocations: 0 / 437.2 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.344e-05/0.1617, allocations: 0 / 437.2 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.02e-06/0.1618, allocations: 0 / 437.2 MB, free: 2.188 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.0002329/0.162, allocations: 43.88 kB / 437.2 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.79e-05/0.162, allocations: 4 kB / 437.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.431e-05/0.1621, allocations: 4 kB / 437.2 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.905e-05/0.1621, allocations: 3.938 kB / 437.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.068e-05/0.1622, allocations: 4 kB / 437.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-06/0.1622, allocations: 0 / 437.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.1623, allocations: 43.95 kB / 437.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.332e-06/0.1623, allocations: 0 / 437.3 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.322e-05/0.1623, allocations: 29.7 kB / 437.3 MB, free: 2.051 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.339e-05/0.1624, allocations: 27.95 kB / 437.3 MB, free: 2.023 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.1624, allocations: 7.875 kB / 437.3 MB, free: 2.016 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1624, allocations: 0 / 437.3 MB, free: 2.016 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1624, allocations: 0 / 437.3 MB, free: 2.016 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.0002727/0.1627, allocations: 349.1 kB / 437.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1628, allocations: 12.03 kB / 437.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.182e-05/0.1628, allocations: 0 / 437.7 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.473e-05/0.1629, allocations: 164.6 kB / 437.9 MB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1629, allocations: 3.984 kB / 437.9 MB, free: 1.406 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.1629, allocations: 4 kB / 437.9 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001028/0.163, allocations: 29.64 kB / 437.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1631, allocations: 0 / 437.9 MB, free: 1.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1631, allocations: 3.984 kB / 437.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1631, allocations: 0 / 437.9 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.862e-05/0.1631, allocations: 12 kB / 437.9 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.1632, allocations: 145.6 kB / 438.1 MB, free: 1.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.641e-05/0.1633, allocations: 18.61 kB / 438.1 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.208e-05/0.1633, allocations: 4.859 kB / 438.1 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.1633, allocations: 0 / 438.1 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.1634, allocations: 64.2 kB / 438.1 MB, free: 1.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1634, allocations: 0 / 438.1 MB, free: 1.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001732/0.1636, allocations: 71.36 kB / 438.2 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.1636, allocations: 77.11 kB / 438.3 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.957e-05/0.1637, allocations: 93.86 kB / 438.4 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.1637, allocations: 25.7 kB / 438.4 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.343e-05/0.1637, allocations: 80.14 kB / 438.5 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.1638, allocations: 0 / 438.5 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.1638, allocations: 0 / 438.5 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1639, allocations: 322.8 kB / 438.8 MB, free: 340 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.258e-05/0.1639, allocations: 4.125 kB / 438.8 MB, free: 336 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.034e-05/0.1639, allocations: 7.938 kB / 438.8 MB, free: 328 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.701e-05/0.164, allocations: 25.7 kB / 438.8 MB, free: 296 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.164, allocations: 3.938 kB / 438.8 MB, free: 292 kB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.5e-05/0.1641, allocations: 59.41 kB / 438.9 MB, free: 220 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.1641, allocations: 33.3 kB / 438.9 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1641, allocations: 3.984 kB / 438.9 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1641, allocations: 4 kB / 438.9 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1641, allocations: 0 / 438.9 MB, free: 176 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1641, allocations: 4.094 kB / 438.9 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.213e-05/0.1642, allocations: 0 / 438.9 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.443e-06/0.1642, allocations: 0 / 438.9 MB, free: 172 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.424e-05/0.1643, allocations: 143.5 kB / 439.1 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.823e-06/0.1643, allocations: 0 / 439.1 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.022e-05/0.1643, allocations: 7.062 kB / 439.1 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.1643, allocations: 0 / 439.1 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1643, allocations: 0 / 439.1 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1643, allocations: 0 / 439.1 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.1644, allocations: 161.6 kB / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1645, allocations: 0 / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1645, allocations: 0 / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.1645, allocations: 0 / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1645, allocations: 0 / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.1645, allocations: 0 / 439.2 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1645, allocations: 3.938 kB / 439.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.88e-05/0.1646, allocations: 90.83 kB / 439.3 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.414e-05/0.1646, allocations: 85.09 kB / 439.4 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.1647, allocations: 8 kB / 439.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.1647, allocations: 0 / 439.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.478e-05/0.1647, allocations: 0 / 439.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.1647, allocations: 3.984 kB / 439.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.746e-05/0.1647, allocations: 75.28 kB / 439.5 MB, free: 15.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1647, allocations: 0 / 439.5 MB, free: 15.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000274/0.165, allocations: 20 kB / 439.5 MB, free: 15.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003466/0.1654, allocations: 201.6 kB / 439.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.785e-05/0.1655, allocations: 59.34 kB / 439.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1655, allocations: 4.062 kB / 439.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.851e-05/0.1655, allocations: 55.41 kB / 439.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.1657, allocations: 7.75 kB / 439.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002033/0.1659, allocations: 78.75 kB / 439.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.1661, allocations: 0.6692 MB / 440.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.1661, allocations: 0 / 440.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.528e-06/0.1661, allocations: 7.438 kB / 440.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1661, allocations: 0 / 440.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of Templates: time 0.003042/0.1692, allocations: 0.5742 MB / 441.2 MB, free: 13.75 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: