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.002292/0.002291, allocations: 178.1 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.001119, allocations: 86.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.333e-05/2.35e-05, allocations: 4 kB / 314.8 MB, free: 9.172 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3418, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.4623, allocations: 73.33 MB / 435.7 MB, free: 13 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4626, allocations: 65.47 kB / 435.7 MB, free: 12.94 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.002709/0.4653, allocations: 0.8262 MB / 436.5 MB, free: 12.12 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4654, allocations: 0 / 436.5 MB, free: 12.12 MB / 331.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.4654, allocations: 0 / 436.5 MB, free: 12.12 MB / 331.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.0003899/0.4658, allocations: 359 kB / 436.9 MB, free: 11.73 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.4658, allocations: 12.03 kB / 436.9 MB, free: 11.71 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.4659, allocations: 0 / 436.9 MB, free: 11.71 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.466, allocations: 163.1 kB / 437.1 MB, free: 11.52 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.4661, allocations: 2.156 kB / 437.1 MB, free: 11.52 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.4661, allocations: 0 / 437.1 MB, free: 11.52 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001295/0.4662, allocations: 46.11 kB / 437.1 MB, free: 11.47 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.4664, allocations: 77.59 kB / 437.2 MB, free: 11.39 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.4664, allocations: 3.938 kB / 437.2 MB, free: 11.39 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.4665, allocations: 2.062 kB / 437.2 MB, free: 11.39 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4665, allocations: 0 / 437.2 MB, free: 11.39 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.4666, allocations: 138.3 kB / 437.3 MB, free: 11.21 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001235/0.4668, allocations: 60.52 kB / 437.4 MB, free: 11.15 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.108e-05/0.4669, allocations: 36.92 kB / 437.4 MB, free: 11.11 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.4669, allocations: 2.25 kB / 437.4 MB, free: 11.11 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/0.467, allocations: 64.25 kB / 437.5 MB, free: 11.03 MB / 331.1 MB Notification: Performance of pre-optimization done (n=4): time 1.513e-06/0.467, allocations: 0 / 437.5 MB, free: 11.03 MB / 331.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004652/0.4675, allocations: 165.5 kB / 437.6 MB, free: 10.86 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.4675, allocations: 82.95 kB / 437.7 MB, free: 10.77 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.4676, allocations: 105 kB / 437.8 MB, free: 10.66 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.4677, allocations: 25.7 kB / 437.9 MB, free: 10.62 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.553e-05/0.4678, allocations: 154.6 kB / 438 MB, free: 10.47 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.928e-05/0.4678, allocations: 6.906 kB / 438 MB, free: 10.47 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.368e-06/0.4678, allocations: 1.5 kB / 438 MB, free: 10.47 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4679, allocations: 318.8 kB / 438.3 MB, free: 10.15 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.531e-05/0.468, allocations: 31.97 kB / 438.4 MB, free: 10.12 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.849e-05/0.4681, allocations: 35.97 kB / 438.4 MB, free: 10.08 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.4682, allocations: 35.97 kB / 438.4 MB, free: 10.05 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4682, allocations: 0 / 438.4 MB, free: 10.05 MB / 331.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003775/0.4686, allocations: 162.5 kB / 438.6 MB, free: 9.883 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.4687, allocations: 37.69 kB / 438.6 MB, free: 9.84 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4687, allocations: 1.719 kB / 438.6 MB, free: 9.84 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4688, allocations: 0 / 438.6 MB, free: 9.84 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-06/0.4688, allocations: 0 / 438.6 MB, free: 9.84 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.4688, allocations: 7.953 kB / 438.6 MB, free: 9.832 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.4688, allocations: 0 / 438.6 MB, free: 9.832 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.4689, allocations: 12.41 kB / 438.6 MB, free: 9.824 MB / 331.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 (success1,success2,success3,success4) * Number of discrete 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.0001164/0.469, allocations: 134.7 kB / 438.8 MB, free: 9.68 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.469, allocations: 11.84 kB / 438.8 MB, free: 9.668 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.296e-05/0.4691, allocations: 6.594 kB / 438.8 MB, free: 9.664 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4691, allocations: 0 / 438.8 MB, free: 9.664 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4691, allocations: 0 / 438.8 MB, free: 9.664 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.4691, allocations: 10.14 kB / 438.8 MB, free: 9.656 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.4693, allocations: 142.2 kB / 438.9 MB, free: 9.48 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4693, allocations: 0 / 438.9 MB, free: 9.48 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.4693, allocations: 0 / 438.9 MB, free: 9.48 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4693, allocations: 0 / 438.9 MB, free: 9.48 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.4693, allocations: 4 kB / 438.9 MB, free: 9.477 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4693, allocations: 5.594 kB / 439 MB, free: 9.473 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4693, allocations: 0 / 439 MB, free: 9.473 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004779/0.4698, allocations: 197 kB / 439.1 MB, free: 9.262 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.141e-05/0.4699, allocations: 89.02 kB / 439.2 MB, free: 9.156 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.4699, allocations: 0 / 439.2 MB, free: 9.156 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.805e-05/0.47, allocations: 4 kB / 439.2 MB, free: 9.152 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.337e-05/0.47, allocations: 3.984 kB / 439.2 MB, free: 9.148 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.47, allocations: 4 kB / 439.2 MB, free: 9.145 MB / 331.1 MB Notification: Performance of sorting global known variables: time 5.896e-05/0.4701, allocations: 93.5 kB / 439.3 MB, free: 9.055 MB / 331.1 MB Notification: Performance of sort global known variables: time 5e-07/0.4701, allocations: 4 kB / 439.3 MB, free: 9.051 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.4704, allocations: 11.98 kB / 439.4 MB, free: 9.039 MB / 331.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) * 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.0003716/0.4708, allocations: 127.2 kB / 439.5 MB, free: 8.914 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.471, allocations: 119.4 kB / 439.6 MB, free: 8.785 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.471, allocations: 4.062 kB / 439.6 MB, free: 8.781 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 9.884e-05/0.4711, allocations: 95.95 kB / 439.7 MB, free: 8.676 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.4713, allocations: 3.953 kB / 439.7 MB, free: 8.672 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003008/0.4716, allocations: 126.2 kB / 439.8 MB, free: 8.52 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002703/0.4719, allocations: 0.6826 MB / 440.5 MB, free: 7.812 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.582e-05/0.4719, allocations: 7.438 kB / 440.5 MB, free: 7.805 MB / 331.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4719, allocations: 0 / 440.5 MB, free: 7.805 MB / 331.1 MB Notification: Performance of Templates: time 0.002786/0.4747, allocations: 0.6674 MB / 441.2 MB, free: 7.152 MB / 331.1 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