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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001154/0.001154, allocations: 186.9 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 225.1 MB, free: 12.24 MB / 190.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: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 52.34 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08005/0.08123, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001597/0.08287, allocations: 488.6 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002205/0.0831, allocations: 61.25 kB / 329.2 MB, free: 3.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.454e-05/0.08314, allocations: 4 kB / 329.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/0.08317, allocations: 0 / 329.2 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.946e-05/0.08324, allocations: 11.98 kB / 329.3 MB, free: 3.215 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.08339, allocations: 27.91 kB / 329.3 MB, free: 3.188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 8.499e-05/0.08348, allocations: 19.92 kB / 329.3 MB, free: 3.168 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.08353, allocations: 4 kB / 329.3 MB, free: 3.164 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.922e-05/0.08357, allocations: 15.97 kB / 329.3 MB, free: 3.148 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.273e-05/0.08363, allocations: 19.98 kB / 329.3 MB, free: 3.129 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.08366, allocations: 0 / 329.3 MB, free: 3.129 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.876e-05/0.0837, allocations: 4 kB / 329.4 MB, free: 3.125 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.259e-05/0.08375, allocations: 11.92 kB / 329.4 MB, free: 3.113 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.08379, allocations: 15.92 kB / 329.4 MB, free: 3.098 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.551e-05/0.08388, allocations: 27.86 kB / 329.4 MB, free: 3.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.08389, allocations: 4 kB / 329.4 MB, free: 3.066 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.0839, allocations: 0 / 329.4 MB, free: 3.066 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.08391, allocations: 0 / 329.4 MB, free: 3.066 MB / 270.1 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.0003258/0.08424, allocations: 357.2 kB / 329.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.08428, allocations: 8.031 kB / 329.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.08432, allocations: 12.83 kB / 329.8 MB, free: 2.641 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.08443, allocations: 164.3 kB / 329.9 MB, free: 2.441 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.08444, allocations: 4.375 kB / 329.9 MB, free: 2.438 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.08446, allocations: 384 / 329.9 MB, free: 2.438 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.08457, allocations: 66.23 kB / 330 MB, free: 2.367 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.08458, allocations: 192 / 330 MB, free: 2.367 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.0846, allocations: 7.938 kB / 330 MB, free: 2.359 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.08461, allocations: 0 / 330 MB, free: 2.359 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.607e-05/0.08465, allocations: 27.92 kB / 330 MB, free: 2.332 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.0848, allocations: 157.7 kB / 330.2 MB, free: 2.129 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.965e-05/0.08487, allocations: 46.56 kB / 330.2 MB, free: 2.074 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.08492, allocations: 32.92 kB / 330.3 MB, free: 2.039 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.08493, allocations: 8 kB / 330.3 MB, free: 2.031 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.08498, allocations: 56.27 kB / 330.3 MB, free: 1.961 MB / 270.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.08498, allocations: 0 / 330.3 MB, free: 1.961 MB / 270.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002852/0.08527, allocations: 199 kB / 330.5 MB, free: 1.754 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.08533, allocations: 81.11 kB / 330.6 MB, free: 1.656 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.607e-05/0.08543, allocations: 113.8 kB / 330.7 MB, free: 1.535 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.08545, allocations: 25.7 kB / 330.7 MB, free: 1.504 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.08549, allocations: 88.12 kB / 330.8 MB, free: 1.414 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.08551, allocations: 15.88 kB / 330.8 MB, free: 1.398 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.08555, allocations: 17.72 kB / 330.9 MB, free: 1.375 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/0.08565, allocations: 318.8 kB / 331.2 MB, free: 1.055 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.08569, allocations: 23.98 kB / 331.2 MB, free: 1.031 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.709e-05/0.08572, allocations: 27.98 kB / 331.2 MB, free: 1.004 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.69e-05/0.08581, allocations: 116.2 kB / 331.3 MB, free: 0.875 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.08582, allocations: 0 / 331.3 MB, free: 0.875 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001404/0.08596, allocations: 155.3 kB / 331.5 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.08601, allocations: 37.75 kB / 331.5 MB, free: 0.668 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.08602, allocations: 7.938 kB / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.08603, allocations: 0 / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.08604, allocations: 0 / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.08605, allocations: 0 / 331.5 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.08607, allocations: 4 kB / 331.5 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.08608, allocations: 0 / 331.5 MB, free: 0.6562 MB / 270.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: 4 (success4,success3,success2,success1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.489e-05/0.08617, allocations: 147.5 kB / 331.7 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.08619, allocations: 7.906 kB / 331.7 MB, free: 500 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.645e-05/0.08621, allocations: 11.84 kB / 331.7 MB, free: 484 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.08622, allocations: 4 kB / 331.7 MB, free: 480 kB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.08623, allocations: 192 / 331.7 MB, free: 480 kB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.08624, allocations: 0 / 331.7 MB, free: 480 kB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.545e-05/0.08634, allocations: 169.6 kB / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.08634, allocations: 0 / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.08635, allocations: 0 / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.08635, allocations: 0 / 331.9 MB, free: 260 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.08637, allocations: 3.938 kB / 331.9 MB, free: 256 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.08637, allocations: 4 kB / 331.9 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.08638, allocations: 0 / 331.9 MB, free: 252 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.08656, allocations: 198.7 kB / 332.1 MB, free: 28 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.692e-05/0.08662, allocations: 81.02 kB / 332.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.08664, allocations: 7.938 kB / 332.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.175e-05/0.08666, allocations: 256 / 332.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.345e-05/0.08667, allocations: 0 / 332.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.08669, allocations: 8 kB / 332.2 MB, free: 15.91 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.039e-05/0.08673, allocations: 91.27 kB / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.08674, allocations: 0 / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002042/0.08695, allocations: 19.97 kB / 332.3 MB, free: 15.8 MB / 286.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: 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002219/0.08718, allocations: 130.2 kB / 332.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.08733, allocations: 127.4 kB / 332.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.08734, allocations: 0 / 332.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.684e-05/0.08741, allocations: 99.33 kB / 332.6 MB, free: 15.43 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.08755, allocations: 12.11 kB / 332.6 MB, free: 15.41 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002224/0.08778, allocations: 133 kB / 332.8 MB, free: 15.26 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.08801, allocations: 0.6807 MB / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.12e-06/0.08802, allocations: 0 / 333.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.418e-06/0.08804, allocations: 7.438 kB / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08804, allocations: 0 / 333.5 MB, free: 14.54 MB / 286.1 MB Notification: Performance of Templates: time 0.002399/0.09045, allocations: 0.6854 MB / 334.1 MB, free: 13.86 MB / 286.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches