Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00264/0.00264, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.953/2.953, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001845/0.001845, allocations: 90.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006109/0.0006112, allocations: 16 kB / 326.9 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1639, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009787/0.165, allocations: 208.4 kB / 374.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003972/0.1655, allocations: 55.88 kB / 374.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.696e-05/0.1655, allocations: 4 kB / 374.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.624e-05/0.1656, allocations: 0 / 374.8 MB, free: 15.19 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.1657, allocations: 11.98 kB / 374.8 MB, free: 15.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.166, allocations: 23.75 kB / 374.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.769e-05/0.1661, allocations: 15.97 kB / 374.8 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.988e-05/0.1662, allocations: 0 / 374.8 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.843e-05/0.1663, allocations: 11.98 kB / 374.9 MB, free: 15.13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1664, allocations: 23.92 kB / 374.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.1665, allocations: 0 / 374.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.553e-05/0.1665, allocations: 4 kB / 374.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.086e-05/0.1666, allocations: 11.98 kB / 374.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.843e-05/0.1667, allocations: 25.7 kB / 374.9 MB, free: 15.06 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.1668, allocations: 15.97 kB / 374.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1668, allocations: 3.938 kB / 374.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1669, allocations: 0 / 374.9 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1669, allocations: 0 / 374.9 MB, free: 15.04 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005779/0.1675, allocations: 357 kB / 375.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.1676, allocations: 12.03 kB / 375.3 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.817e-05/0.1676, allocations: 0 / 375.3 MB, free: 14.62 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002385/0.1679, allocations: 175.1 kB / 375.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.168, allocations: 4 kB / 375.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.226e-05/0.168, allocations: 0 / 375.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.1682, allocations: 77.61 kB / 375.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1683, allocations: 0 / 375.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.1683, allocations: 0 / 375.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1683, allocations: 0 / 375.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.577e-05/0.1684, allocations: 27.98 kB / 375.6 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002785/0.1687, allocations: 153.7 kB / 375.7 MB, free: 14.1 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.1689, allocations: 58.44 kB / 375.8 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.1689, allocations: 0 / 375.8 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.084e-05/0.1691, allocations: 60.3 kB / 375.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 2.966e-06/0.1691, allocations: 0 / 375.8 MB, free: 13.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.000728/0.1698, allocations: 260.5 kB / 376.1 MB, free: 13.68 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.582e-05/0.17, allocations: 77.11 kB / 376.2 MB, free: 13.58 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.1702, allocations: 115.1 kB / 376.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.1702, allocations: 29.7 kB / 376.3 MB, free: 13.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.1704, allocations: 154.6 kB / 376.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.1704, allocations: 7.906 kB / 376.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.095e-05/0.1705, allocations: 0 / 376.5 MB, free: 13.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1707, allocations: 318.8 kB / 376.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.937e-05/0.1708, allocations: 23.98 kB / 376.8 MB, free: 12.92 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/0.1709, allocations: 27.98 kB / 376.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.171, allocations: 57.69 kB / 376.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-06/0.1711, allocations: 0 / 376.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004249/0.1715, allocations: 155.3 kB / 377 MB, free: 12.67 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.95e-05/0.1716, allocations: 33.7 kB / 377.1 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1716, allocations: 0 / 377.1 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.727e-05/0.1717, allocations: 3.953 kB / 377.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.865e-06/0.1717, allocations: 4 kB / 377.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1717, allocations: 0 / 377.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.841e-05/0.1718, allocations: 3.984 kB / 377.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.1718, allocations: 4 kB / 377.1 MB, free: 12.61 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * 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 0.0002085/0.1721, allocations: 139.5 kB / 377.2 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.1721, allocations: 0 / 377.2 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.197e-05/0.1722, allocations: 15.89 kB / 377.2 MB, free: 12.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.1722, allocations: 7.891 kB / 377.2 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.954e-06/0.1722, allocations: 3.938 kB / 377.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1723, allocations: 0 / 377.3 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1725, allocations: 161.7 kB / 377.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1725, allocations: 0 / 377.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-06/0.1725, allocations: 0 / 377.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.1726, allocations: 0 / 377.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1726, allocations: 7.984 kB / 377.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.1726, allocations: 0 / 377.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.1726, allocations: 7.891 kB / 377.4 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000534/0.1732, allocations: 198.9 kB / 377.6 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.715e-05/0.1733, allocations: 93.27 kB / 377.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.1734, allocations: 0 / 377.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.525e-05/0.1734, allocations: 4 kB / 377.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.1735, allocations: 4 kB / 377.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.1735, allocations: 3.953 kB / 377.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001186/0.1737, allocations: 91.27 kB / 377.8 MB, free: 11.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.1737, allocations: 4.031 kB / 377.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004563/0.1742, allocations: 12 kB / 377.8 MB, free: 11.76 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0005668/0.1747, allocations: 121.2 kB / 377.9 MB, free: 11.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.1751, allocations: 123.4 kB / 378.1 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.1752, allocations: 0 / 378.1 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.1754, allocations: 99.45 kB / 378.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.1756, allocations: 7.938 kB / 378.2 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000533/0.1762, allocations: 164.4 kB / 378.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.1767, allocations: 0.6848 MB / 379 MB, free: 10.48 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.938e-05/0.1767, allocations: 7.438 kB / 379 MB, free: 10.47 MB / 282.7 MB Notification: Performance of SimCode: time 1.933e-06/0.1767, allocations: 0 / 379 MB, free: 10.47 MB / 282.7 MB Notification: Performance of Templates: time 0.004385/0.1811, allocations: 0.6792 MB / 379.7 MB, free: 9.797 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches