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.001535/0.001535, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.977/1.977, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001163/0.001162, allocations: 92.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003897, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3242, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1193/0.4436, allocations: 74.08 MB / 448.6 MB, free: 6.688 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.4439, allocations: 59.97 kB / 448.7 MB, free: 6.629 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002723/0.4467, allocations: 0.8298 MB / 449.5 MB, free: 5.797 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4467, allocations: 0 / 449.5 MB, free: 5.797 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.4467, allocations: 0 / 449.5 MB, free: 5.797 MB / 330.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.000381/0.4471, allocations: 361 kB / 449.8 MB, free: 5.391 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4472, allocations: 11.97 kB / 449.9 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.523e-05/0.4472, allocations: 11.84 kB / 449.9 MB, free: 5.367 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.4474, allocations: 167 kB / 450 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.4474, allocations: 0 / 450 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.273e-05/0.4474, allocations: 4 kB / 450 MB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.4477, allocations: 85.58 kB / 450.1 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.4477, allocations: 0 / 450.1 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.4477, allocations: 0 / 450.1 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.4477, allocations: 4 kB / 450.1 MB, free: 5.066 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.4478, allocations: 35.97 kB / 450.2 MB, free: 5.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001896/0.448, allocations: 153.7 kB / 450.3 MB, free: 4.832 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.4482, allocations: 66.56 kB / 450.4 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.4482, allocations: 0 / 450.4 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/0.4483, allocations: 64.25 kB / 450.4 MB, free: 4.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.453e-06/0.4483, allocations: 0 / 450.4 MB, free: 4.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.000726/0.449, allocations: 308.4 kB / 450.7 MB, free: 4.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.4491, allocations: 89.03 kB / 450.8 MB, free: 4.242 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.4493, allocations: 104.9 kB / 450.9 MB, free: 4.133 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.4493, allocations: 29.7 kB / 451 MB, free: 4.098 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.051e-05/0.4494, allocations: 154.6 kB / 451.1 MB, free: 3.945 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.4494, allocations: 3.906 kB / 451.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.4494, allocations: 8.031 kB / 451.1 MB, free: 3.934 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4496, allocations: 310.8 kB / 451.4 MB, free: 3.621 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.447e-05/0.4497, allocations: 35.97 kB / 451.5 MB, free: 3.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.658e-05/0.4498, allocations: 39.97 kB / 451.5 MB, free: 3.547 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.4499, allocations: 65.67 kB / 451.6 MB, free: 3.477 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4499, allocations: 0 / 451.6 MB, free: 3.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0004207/0.4504, allocations: 187.3 kB / 451.7 MB, free: 3.281 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.198e-05/0.4504, allocations: 33.69 kB / 451.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.4505, allocations: 0 / 451.8 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.4505, allocations: 3.953 kB / 451.8 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.4505, allocations: 8.062 kB / 451.8 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.4505, allocations: 0 / 451.8 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.59e-05/0.4506, allocations: 4.188 kB / 451.8 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/0.4506, allocations: 12 kB / 451.8 MB, free: 3.215 MB / 330.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.0001377/0.4508, allocations: 147.5 kB / 451.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.4508, allocations: 4 kB / 452 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.404e-05/0.4508, allocations: 7.844 kB / 452 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.4508, allocations: 0 / 452 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4509, allocations: 3.953 kB / 452 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4509, allocations: 7.984 kB / 452 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.451, allocations: 157.7 kB / 452.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.451, allocations: 0 / 452.1 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.607e-06/0.451, allocations: 3.984 kB / 452.1 MB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.4511, allocations: 7.938 kB / 452.1 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.4511, allocations: 0 / 452.1 MB, free: 2.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.4511, allocations: 4 kB / 452.1 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4511, allocations: 0 / 452.1 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000482/0.4516, allocations: 238.6 kB / 452.4 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.4517, allocations: 77.3 kB / 452.5 MB, free: 2.461 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.4517, allocations: 4 kB / 452.5 MB, free: 2.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.858e-05/0.4517, allocations: 3.984 kB / 452.5 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.197e-05/0.4518, allocations: 3.938 kB / 452.5 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.4518, allocations: 11.98 kB / 452.5 MB, free: 2.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.225e-05/0.4519, allocations: 91.23 kB / 452.6 MB, free: 2.348 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4519, allocations: 0 / 452.6 MB, free: 2.348 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.4522, allocations: 8 kB / 452.6 MB, free: 2.34 MB / 330.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.0003507/0.4525, allocations: 137.2 kB / 452.7 MB, free: 2.211 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002412/0.4528, allocations: 127.4 kB / 452.8 MB, free: 2.074 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4528, allocations: 0 / 452.8 MB, free: 2.074 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.4529, allocations: 99.38 kB / 452.9 MB, free: 1.965 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.453, allocations: 4 kB / 452.9 MB, free: 1.961 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003495/0.4534, allocations: 172.5 kB / 453.1 MB, free: 1.758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.4537, allocations: 0.6809 MB / 453.8 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.19e-05/0.4537, allocations: 7.438 kB / 453.8 MB, free: 1.043 MB / 330.7 MB Notification: Performance of SimCode: time 3.156e-06/0.4537, allocations: 0 / 453.8 MB, free: 1.043 MB / 330.7 MB Notification: Performance of Templates: time 0.002708/0.4565, allocations: 0.665 MB / 454.5 MB, free: 392 kB / 330.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