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.001182/0.001182, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001205/0.001205, allocations: 177.3 kB / 15.94 MB, free: 228 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.772/1.772, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.4105/0.4105, allocations: 40 MB / 310.4 MB, free: 9.734 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.0006116/0.0006118, allocations: 16 kB / 378.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1563, allocations: 57.95 MB / 436.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005966/0.157, allocations: 220.4 kB / 437 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004918/0.1575, allocations: 190.9 kB / 437.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.775e-05/0.1575, allocations: 0 / 437.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.473e-05/0.1575, allocations: 0 / 437.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.911e-06/0.1576, allocations: 0 / 437.2 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002324/0.1578, allocations: 39.83 kB / 437.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.67e-05/0.1578, allocations: 4 kB / 437.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.202e-05/0.1579, allocations: 0 / 437.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.611e-05/0.1579, allocations: 0 / 437.2 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.545e-05/0.1579, allocations: 3.984 kB / 437.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.151e-06/0.158, allocations: 0 / 437.2 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1581, allocations: 43.92 kB / 437.2 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.308e-06/0.1581, allocations: 7.969 kB / 437.2 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.1581, allocations: 25.7 kB / 437.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.454e-05/0.1582, allocations: 19.98 kB / 437.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1582, allocations: 3.938 kB / 437.3 MB, free: 1.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1582, allocations: 4 kB / 437.3 MB, free: 1.727 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1582, allocations: 0 / 437.3 MB, free: 1.727 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.0003525/0.1586, allocations: 353.1 kB / 437.6 MB, free: 1.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1586, allocations: 8.031 kB / 437.7 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.1587, allocations: 8 kB / 437.7 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.1588, allocations: 175 kB / 437.8 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.1588, allocations: 0 / 437.8 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-06/0.1588, allocations: 0 / 437.8 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.064e-05/0.1589, allocations: 29.7 kB / 437.9 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.1589, allocations: 3.938 kB / 437.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.1589, allocations: 0 / 437.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.159, allocations: 0 / 437.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.159, allocations: 0 / 437.9 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.1591, allocations: 153.6 kB / 438 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.747e-05/0.1592, allocations: 26.55 kB / 438 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.1592, allocations: 0 / 438 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.849e-05/0.1593, allocations: 56.27 kB / 438.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.031e-06/0.1593, allocations: 0 / 438.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001812/0.1595, allocations: 63.38 kB / 438.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.638e-05/0.1595, allocations: 85.09 kB / 438.2 MB, free: 0.582 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.337e-05/0.1596, allocations: 101.9 kB / 438.3 MB, free: 484 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.1596, allocations: 25.7 kB / 438.4 MB, free: 452 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.1596, allocations: 80.14 kB / 438.4 MB, free: 368 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.468e-05/0.1597, allocations: 0 / 438.4 MB, free: 368 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-06/0.1597, allocations: 0 / 438.4 MB, free: 368 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1598, allocations: 314.8 kB / 438.8 MB, free: 44 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-06/0.1598, allocations: 0 / 438.8 MB, free: 44 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-06/0.1598, allocations: 4 kB / 438.8 MB, free: 40 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.605e-05/0.1598, allocations: 29.77 kB / 438.8 MB, free: 4 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1598, allocations: 0 / 438.8 MB, free: 4 kB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.567e-05/0.1599, allocations: 67.39 kB / 438.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.16, allocations: 33.3 kB / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.16, allocations: 0 / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.16, allocations: 4 kB / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.16, allocations: 0 / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.16, allocations: 0 / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.722e-05/0.16, allocations: 0 / 438.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.1601, allocations: 0 / 438.9 MB, free: 15.89 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.739e-05/0.1601, allocations: 147.5 kB / 439 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.1602, allocations: 3.984 kB / 439 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.648e-06/0.1602, allocations: 3.125 kB / 439 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1602, allocations: 3.938 kB / 439 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.1602, allocations: 0 / 439 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1602, allocations: 0 / 439 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.961e-05/0.1603, allocations: 149.6 kB / 439.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1603, allocations: 3.938 kB / 439.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1603, allocations: 0 / 439.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1603, allocations: 0 / 439.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1603, allocations: 7.984 kB / 439.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1603, allocations: 0 / 439.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1604, allocations: 0 / 439.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.717e-05/0.1605, allocations: 86.84 kB / 439.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.1605, allocations: 89.05 kB / 439.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1605, allocations: 4 kB / 439.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.1605, allocations: 3.984 kB / 439.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.1606, allocations: 4.031 kB / 439.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.1606, allocations: 4 kB / 439.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.83e-05/0.1606, allocations: 79.22 kB / 439.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1606, allocations: 0 / 439.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002646/0.1609, allocations: 16 kB / 439.5 MB, free: 15.18 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.000429/0.1613, allocations: 197.5 kB / 439.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.1615, allocations: 59.41 kB / 439.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.1615, allocations: 0 / 439.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.634e-05/0.1615, allocations: 59.39 kB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.76e-05/0.1616, allocations: 3.875 kB / 439.8 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001736/0.1618, allocations: 82.7 kB / 439.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.1621, allocations: 0.6731 MB / 440.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.62e-06/0.1621, allocations: 0 / 440.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.056e-05/0.1621, allocations: 11.44 kB / 440.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1621, allocations: 0 / 440.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.002827/0.1649, allocations: 0.5662 MB / 441.1 MB, free: 13.46 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: