Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001059/0.001059, allocations: 196.4 kB / 17.05 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.216/1.216, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007334/0.0007334, allocations: 105.5 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001933/0.0001933, allocations: 7.938 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1682, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0003943/0.1686, allocations: 196.7 kB / 407.7 MB, free: 27.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001642/0.1688, allocations: 62.78 kB / 407.7 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.97e-05/0.1688, allocations: 0.5312 kB / 407.7 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.914e-05/0.1688, allocations: 2 kB / 407.7 MB, free: 27.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.592e-05/0.1689, allocations: 11.98 kB / 407.8 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001129/0.169, allocations: 19.98 kB / 407.8 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.894e-05/0.169, allocations: 19.97 kB / 407.8 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.1691, allocations: 7.922 kB / 407.8 MB, free: 27.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.057e-05/0.1691, allocations: 8.688 kB / 407.8 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.1692, allocations: 19.97 kB / 407.8 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.1692, allocations: 2.094 kB / 407.8 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.961e-05/0.1692, allocations: 7.984 kB / 407.8 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.326e-05/0.1693, allocations: 7.938 kB / 407.8 MB, free: 27.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.845e-05/0.1693, allocations: 29.7 kB / 407.9 MB, free: 27.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.408e-05/0.1693, allocations: 15.98 kB / 407.9 MB, free: 27.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1693, allocations: 0.625 kB / 407.9 MB, free: 27.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1694, allocations: 0 / 407.9 MB, free: 27.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1694, allocations: 1.062 kB / 407.9 MB, free: 27.41 MB / 298.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.0001947/0.1696, allocations: 357 kB / 408.2 MB, free: 27.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.689e-05/0.1696, allocations: 13.06 kB / 408.3 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.712e-05/0.1696, allocations: 0 / 408.3 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.285e-05/0.1697, allocations: 172 kB / 408.4 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.1697, allocations: 1.188 kB / 408.4 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.1697, allocations: 0 / 408.4 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.448e-05/0.1698, allocations: 68.45 kB / 408.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.1698, allocations: 0 / 408.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1698, allocations: 3.938 kB / 408.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.1699, allocations: 0 / 408.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.946e-05/0.1699, allocations: 27.98 kB / 408.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.997e-05/0.17, allocations: 157.6 kB / 408.7 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.334e-05/0.17, allocations: 48.27 kB / 408.7 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.623e-05/0.1701, allocations: 36.92 kB / 408.8 MB, free: 26.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-06/0.1701, allocations: 0 / 408.8 MB, free: 26.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.1701, allocations: 71.31 kB / 408.8 MB, free: 26.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.1701, allocations: 0 / 408.8 MB, free: 26.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001972/0.1703, allocations: 179.3 kB / 409 MB, free: 26.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.1703, allocations: 85.09 kB / 409.1 MB, free: 26.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.103e-05/0.1704, allocations: 109.8 kB / 409.2 MB, free: 25.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.492e-06/0.1704, allocations: 25.7 kB / 409.2 MB, free: 25.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.742e-05/0.1704, allocations: 92.17 kB / 409.3 MB, free: 25.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.1704, allocations: 7.891 kB / 409.3 MB, free: 25.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.1704, allocations: 0 / 409.3 MB, free: 25.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.502e-05/0.1705, allocations: 314.8 kB / 409.6 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.351e-05/0.1705, allocations: 27.98 kB / 409.7 MB, free: 25.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.029e-05/0.1705, allocations: 27.98 kB / 409.7 MB, free: 25.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.416e-05/0.1706, allocations: 61.62 kB / 409.7 MB, free: 25.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.1706, allocations: 0 / 409.7 MB, free: 25.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001064/0.1707, allocations: 151.5 kB / 409.9 MB, free: 25.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.1707, allocations: 33.75 kB / 409.9 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1707, allocations: 12.2 kB / 409.9 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-06/0.1708, allocations: 0 / 409.9 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.1708, allocations: 7.984 kB / 409.9 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.1708, allocations: 0 / 409.9 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.1708, allocations: 0 / 409.9 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1708, allocations: 4 kB / 409.9 MB, free: 25.11 MB / 298.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 4.993e-05/0.1709, allocations: 147.5 kB / 410.1 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.318e-06/0.1709, allocations: 4 kB / 410.1 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.307e-06/0.1709, allocations: 3.906 kB / 410.1 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1709, allocations: 7.953 kB / 410.1 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.1709, allocations: 0 / 410.1 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-06/0.1709, allocations: 0 / 410.1 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.079e-05/0.171, allocations: 161.7 kB / 410.3 MB, free: 24.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.171, allocations: 3.938 kB / 410.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.171, allocations: 0 / 410.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.171, allocations: 0 / 410.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.171, allocations: 4 kB / 410.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.171, allocations: 3.938 kB / 410.3 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.171, allocations: 3.953 kB / 410.3 MB, free: 24.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.1711, allocations: 201.7 kB / 410.5 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.465e-05/0.1712, allocations: 81.11 kB / 410.6 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1712, allocations: 0 / 410.6 MB, free: 24.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.1712, allocations: 4 kB / 410.6 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.035e-05/0.1712, allocations: 3.953 kB / 410.6 MB, free: 24.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.1712, allocations: 0 / 410.6 MB, free: 24.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.394e-05/0.1713, allocations: 91.27 kB / 410.6 MB, free: 24.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1713, allocations: 7.938 kB / 410.7 MB, free: 24.28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001718/0.1714, allocations: 12.03 kB / 410.7 MB, free: 24.27 MB / 298.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.0002031/0.1717, allocations: 125.8 kB / 410.8 MB, free: 24.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.1718, allocations: 127.3 kB / 410.9 MB, free: 24.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1718, allocations: 4 kB / 410.9 MB, free: 24.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.945e-05/0.1718, allocations: 95.45 kB / 411 MB, free: 23.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.1719, allocations: 4 kB / 411 MB, free: 23.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001665/0.1721, allocations: 168.4 kB / 411.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.686e-05/0.1722, allocations: 0.6809 MB / 411.9 MB, free: 23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-06/0.1722, allocations: 7.438 kB / 411.9 MB, free: 22.99 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1722, allocations: 0 / 411.9 MB, free: 22.99 MB / 298.7 MB Notification: Performance of Templates: time 0.001478/0.1737, allocations: 0.6768 MB / 412.5 MB, free: 22.32 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches