Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001023/0.001022, allocations: 181.4 kB / 17.01 MB, free: 5.125 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.585/1.585, allocations: 205.4 MB / 223.1 MB, free: 9.035 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.0009553/0.0009553, allocations: 92.16 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002419/0.0002419, allocations: 8 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2464, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09481/0.3413, allocations: 74.08 MB / 449.9 MB, free: 6.605 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.3416, allocations: 67.97 kB / 449.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001874/0.3435, allocations: 0.8303 MB / 450.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.786e-06/0.3435, allocations: 0 / 450.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.3435, allocations: 0 / 450.8 MB, free: 5.707 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.0003699/0.3439, allocations: 365 kB / 451.1 MB, free: 5.297 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.3439, allocations: 11.97 kB / 451.1 MB, free: 5.285 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.881e-05/0.344, allocations: 7.906 kB / 451.1 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.3441, allocations: 163 kB / 451.3 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.3441, allocations: 4 kB / 451.3 MB, free: 5.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.3442, allocations: 3.938 kB / 451.3 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.3443, allocations: 81.58 kB / 451.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.3443, allocations: 4 kB / 451.4 MB, free: 4.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.3443, allocations: 4 kB / 451.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.3444, allocations: 0 / 451.4 MB, free: 4.977 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.914e-05/0.3444, allocations: 39.97 kB / 451.4 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001521/0.3446, allocations: 153.7 kB / 451.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.3447, allocations: 62.48 kB / 451.6 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.094e-06/0.3447, allocations: 0 / 451.6 MB, free: 4.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.3448, allocations: 64.3 kB / 451.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.3448, allocations: 4 kB / 451.7 MB, free: 4.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004267/0.3452, allocations: 304.4 kB / 452 MB, free: 4.258 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.3453, allocations: 81.09 kB / 452.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.482e-05/0.3453, allocations: 112.9 kB / 452.2 MB, free: 4.043 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3454, allocations: 29.7 kB / 452.2 MB, free: 4.008 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.379e-05/0.3454, allocations: 84.14 kB / 452.3 MB, free: 3.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.3455, allocations: 3.906 kB / 452.3 MB, free: 3.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-06/0.3455, allocations: 0 / 452.3 MB, free: 3.918 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3456, allocations: 322.8 kB / 452.6 MB, free: 3.594 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.078e-05/0.3456, allocations: 40 kB / 452.7 MB, free: 3.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.756e-05/0.3457, allocations: 35.97 kB / 452.7 MB, free: 3.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.924e-05/0.3458, allocations: 69.67 kB / 452.8 MB, free: 3.445 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3458, allocations: 0 / 452.8 MB, free: 3.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002393/0.346, allocations: 187.3 kB / 453 MB, free: 3.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.294e-05/0.3461, allocations: 29.7 kB / 453 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3461, allocations: 0 / 453 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3461, allocations: 7.953 kB / 453 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.3461, allocations: 0 / 453 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3461, allocations: 0 / 453 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.921e-05/0.3462, allocations: 4.062 kB / 453 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.3462, allocations: 15.98 kB / 453 MB, free: 3.188 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 9.637e-05/0.3463, allocations: 139.8 kB / 453.1 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.3463, allocations: 11.92 kB / 453.2 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.68e-05/0.3463, allocations: 7.906 kB / 453.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3464, allocations: 0 / 453.2 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3464, allocations: 7.891 kB / 453.2 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3464, allocations: 4 kB / 453.2 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.3465, allocations: 157.7 kB / 453.3 MB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3465, allocations: 4 kB / 453.3 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3465, allocations: 0 / 453.3 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3465, allocations: 4 kB / 453.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.3465, allocations: 0 / 453.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3465, allocations: 7.938 kB / 453.3 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3466, allocations: 0 / 453.3 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.3468, allocations: 234.8 kB / 453.6 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.3469, allocations: 81.09 kB / 453.7 MB, free: 2.434 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.3469, allocations: 8.031 kB / 453.7 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.475e-05/0.3469, allocations: 3.984 kB / 453.7 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.3469, allocations: 0 / 453.7 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.347, allocations: 12 kB / 453.7 MB, free: 2.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.929e-05/0.347, allocations: 91.22 kB / 453.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.347, allocations: 0 / 453.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001769/0.3472, allocations: 8 kB / 453.8 MB, free: 2.312 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.0002736/0.3475, allocations: 138.8 kB / 453.9 MB, free: 2.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.3477, allocations: 127.4 kB / 454 MB, free: 2.047 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3477, allocations: 0 / 454 MB, free: 2.047 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.71e-05/0.3478, allocations: 95.39 kB / 454.1 MB, free: 1.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.485e-05/0.3479, allocations: 7.938 kB / 454.1 MB, free: 1.934 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002504/0.3481, allocations: 146.8 kB / 454.3 MB, free: 1.762 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.3484, allocations: 0.6848 MB / 455 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.991e-06/0.3484, allocations: 0 / 455 MB, free: 1.051 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-06/0.3484, allocations: 7.438 kB / 455 MB, free: 1.043 MB / 330.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3484, allocations: 0 / 455 MB, free: 1.043 MB / 330.7 MB Notification: Performance of Templates: time 0.002431/0.3508, allocations: 0.6149 MB / 455.6 MB, free: 444 kB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/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_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches