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.001464/0.001464, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009726/0.0009726, allocations: 86.23 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.391e-05/1.395e-05, allocations: 0 / 315.5 MB, free: 22.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1178, allocations: 47.59 MB / 363.1 MB, free: 7.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3298/0.4477, allocations: 73.57 MB / 436.6 MB, free: 6.062 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.4479, allocations: 59.28 kB / 436.7 MB, free: 6.031 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001819/0.4497, allocations: 0.8177 MB / 437.5 MB, free: 5.297 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4498, allocations: 4 kB / 437.5 MB, free: 5.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.4498, allocations: 0 / 437.5 MB, free: 5.293 MB / 314.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.0003026/0.4501, allocations: 356.4 kB / 437.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4501, allocations: 8.031 kB / 437.9 MB, free: 4.891 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.813e-05/0.4502, allocations: 4 kB / 437.9 MB, free: 4.887 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.4503, allocations: 163.1 kB / 438 MB, free: 4.688 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.4503, allocations: 4 kB / 438 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.4504, allocations: 0 / 438 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.68e-05/0.4505, allocations: 43.86 kB / 438.1 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.4506, allocations: 73.66 kB / 438.2 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.4506, allocations: 0.75 kB / 438.2 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.4506, allocations: 4 kB / 438.2 MB, free: 4.562 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.4506, allocations: 0 / 438.2 MB, free: 4.562 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.4507, allocations: 134 kB / 438.3 MB, free: 4.398 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.317e-05/0.4508, allocations: 57.97 kB / 438.3 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.003e-05/0.4509, allocations: 40.91 kB / 438.4 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.4509, allocations: 4 kB / 438.4 MB, free: 4.289 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.4509, allocations: 64.64 kB / 438.4 MB, free: 4.215 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.451, allocations: 3.938 kB / 438.5 MB, free: 4.211 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003022/0.4513, allocations: 169.4 kB / 438.6 MB, free: 4.043 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.4513, allocations: 77.88 kB / 438.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.561e-05/0.4514, allocations: 104.9 kB / 438.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.4514, allocations: 25.7 kB / 438.8 MB, free: 3.812 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.4515, allocations: 87.94 kB / 438.9 MB, free: 3.727 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.4515, allocations: 7.906 kB / 438.9 MB, free: 3.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/0.4515, allocations: 4.031 kB / 438.9 MB, free: 3.715 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4516, allocations: 318.8 kB / 439.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.437e-05/0.4517, allocations: 41.61 kB / 439.3 MB, free: 3.359 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.9e-05/0.4517, allocations: 31.97 kB / 439.3 MB, free: 3.328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.347e-05/0.4518, allocations: 35.97 kB / 439.3 MB, free: 3.293 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4518, allocations: 4 kB / 439.3 MB, free: 3.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002011/0.452, allocations: 153.5 kB / 439.5 MB, free: 3.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.038e-05/0.452, allocations: 37.19 kB / 439.5 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.452, allocations: 4 kB / 439.5 MB, free: 3.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.4521, allocations: 7 kB / 439.5 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.4521, allocations: 0 / 439.5 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.4521, allocations: 3.953 kB / 439.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.4521, allocations: 0 / 439.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.4521, allocations: 8 kB / 439.6 MB, free: 3.078 MB / 314.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 () * 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 8.293e-05/0.4522, allocations: 134.7 kB / 439.7 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.4523, allocations: 7.906 kB / 439.7 MB, free: 2.926 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.23e-05/0.4523, allocations: 4.344 kB / 439.7 MB, free: 2.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4523, allocations: 8.031 kB / 439.7 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.4523, allocations: 4 kB / 439.7 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4523, allocations: 3.953 kB / 439.7 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.284e-05/0.4524, allocations: 138.2 kB / 439.8 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4524, allocations: 3.938 kB / 439.8 MB, free: 2.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.4524, allocations: 7.938 kB / 439.9 MB, free: 2.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.4525, allocations: 0 / 439.9 MB, free: 2.727 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.4525, allocations: 4 kB / 439.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4525, allocations: 0 / 439.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4525, allocations: 0 / 439.9 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002592/0.4527, allocations: 202.7 kB / 440.1 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.4528, allocations: 81.02 kB / 440.1 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.4528, allocations: 0 / 440.1 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.376e-05/0.4528, allocations: 4 kB / 440.1 MB, free: 2.414 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/0.4529, allocations: 6.672 kB / 440.1 MB, free: 2.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.4529, allocations: 11.38 kB / 440.2 MB, free: 2.402 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.601e-05/0.4529, allocations: 83.28 kB / 440.2 MB, free: 2.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4529, allocations: 0 / 440.2 MB, free: 2.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001807/0.4531, allocations: 15.94 kB / 440.3 MB, free: 2.305 MB / 314.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) * 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.0002713/0.4534, allocations: 126.8 kB / 440.4 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.4535, allocations: 122.6 kB / 440.5 MB, free: 2.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4536, allocations: 4 kB / 440.5 MB, free: 2.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.737e-05/0.4536, allocations: 90.77 kB / 440.6 MB, free: 1.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001025/0.4537, allocations: 12.02 kB / 440.6 MB, free: 1.945 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002084/0.454, allocations: 99.8 kB / 440.7 MB, free: 1.824 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.4542, allocations: 0.6846 MB / 441.4 MB, free: 1.113 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.52e-06/0.4542, allocations: 4 kB / 441.4 MB, free: 1.109 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.955e-06/0.4542, allocations: 7.438 kB / 441.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4542, allocations: 0 / 441.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of Templates: time 0.002378/0.4566, allocations: 0.589 MB / 442 MB, free: 0.5195 MB / 314.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