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.001363/0.001363, allocations: 105.4 kB / 17.73 MB, free: 5.367 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.00181/0.00181, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.589/1.589, allocations: 205.1 MB / 224.5 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.001524/0.001524, allocations: 47.94 kB / 328.5 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09276, allocations: 46.62 MB / 375.1 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001429/0.09422, allocations: 490.5 kB / 375.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002355/0.09447, allocations: 59.78 kB / 375.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.461e-05/0.09451, allocations: 0 / 375.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.202e-05/0.09455, allocations: 0 / 375.6 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.752e-05/0.09463, allocations: 15.98 kB / 375.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000158/0.09479, allocations: 23.91 kB / 375.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.778e-05/0.09489, allocations: 23.97 kB / 375.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.09494, allocations: 11.94 kB / 375.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.385e-05/0.09496, allocations: 7.984 kB / 375.7 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.896e-05/0.09503, allocations: 23.97 kB / 375.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.09505, allocations: 0 / 375.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.159e-05/0.0951, allocations: 8 kB / 375.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.836e-05/0.09514, allocations: 7.922 kB / 375.8 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.688e-05/0.09517, allocations: 11.94 kB / 375.8 MB, free: 3.938 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.635e-05/0.09526, allocations: 27.91 kB / 375.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09527, allocations: 0 / 375.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.09528, allocations: 0 / 375.8 MB, free: 3.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.09529, allocations: 4 kB / 375.8 MB, free: 3.906 MB / 318.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.0003202/0.09562, allocations: 369.1 kB / 376.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.09566, allocations: 8.031 kB / 376.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.733e-05/0.09569, allocations: 0.9375 kB / 376.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.09581, allocations: 176.2 kB / 376.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.273e-06/0.09582, allocations: 384 / 376.4 MB, free: 3.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.09584, allocations: 4.375 kB / 376.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000106/0.09595, allocations: 58.25 kB / 376.4 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.09597, allocations: 4.188 kB / 376.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.947e-06/0.09598, allocations: 3.938 kB / 376.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.09599, allocations: 0 / 376.4 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.681e-05/0.09603, allocations: 27.98 kB / 376.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001277/0.09616, allocations: 153.7 kB / 376.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.256e-05/0.09623, allocations: 54.55 kB / 376.7 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.588e-05/0.09629, allocations: 36.92 kB / 376.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-06/0.09629, allocations: 0 / 376.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.09633, allocations: 64.27 kB / 376.8 MB, free: 2.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.09634, allocations: 0 / 376.8 MB, free: 2.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002724/0.09662, allocations: 191.2 kB / 376.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.09667, allocations: 81.09 kB / 377 MB, free: 2.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.602e-05/0.09676, allocations: 117.8 kB / 377.1 MB, free: 2.367 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.09678, allocations: 25.7 kB / 377.2 MB, free: 2.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.103e-05/0.09681, allocations: 80.14 kB / 377.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.09684, allocations: 11.91 kB / 377.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.09687, allocations: 17.75 kB / 377.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.09698, allocations: 318.8 kB / 377.6 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.096e-05/0.09702, allocations: 28.19 kB / 377.6 MB, free: 1.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.467e-05/0.09705, allocations: 23.98 kB / 377.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.537e-05/0.09715, allocations: 124.2 kB / 377.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.09716, allocations: 0 / 377.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001421/0.0973, allocations: 155.3 kB / 377.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.09734, allocations: 33.69 kB / 377.9 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.09735, allocations: 7.938 kB / 377.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.09737, allocations: 4.062 kB / 377.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.09738, allocations: 0 / 377.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.09739, allocations: 0 / 377.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.09741, allocations: 0 / 377.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.09742, allocations: 4 kB / 378 MB, free: 1.492 MB / 318.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 9.431e-05/0.09752, allocations: 147.5 kB / 378.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.09754, allocations: 4 kB / 378.1 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.09756, allocations: 7.844 kB / 378.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.09757, allocations: 0 / 378.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.09758, allocations: 4 kB / 378.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.09758, allocations: 0 / 378.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.09769, allocations: 169.5 kB / 378.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.0977, allocations: 0 / 378.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.09771, allocations: 3.938 kB / 378.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.09771, allocations: 0 / 378.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.09773, allocations: 7.938 kB / 378.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.09773, allocations: 0 / 378.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09774, allocations: 0 / 378.3 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.09793, allocations: 198.7 kB / 378.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.861e-05/0.09798, allocations: 81.11 kB / 378.6 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.098, allocations: 3.938 kB / 378.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.09802, allocations: 4 kB / 378.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/0.09804, allocations: 0 / 378.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-06/0.09805, allocations: 3.984 kB / 378.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.551e-05/0.0981, allocations: 95.28 kB / 378.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09811, allocations: 0 / 378.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002037/0.09831, allocations: 8 kB / 378.7 MB, free: 0.6562 MB / 318.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.0002372/0.09856, allocations: 147.1 kB / 378.8 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001392/0.09871, allocations: 131.3 kB / 378.9 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.09872, allocations: 0 / 378.9 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.453e-05/0.0988, allocations: 103.3 kB / 379 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.09894, allocations: 4 kB / 379 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002071/0.09916, allocations: 144.9 kB / 379.2 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1575/0.2566, allocations: 0.676 MB / 379.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.514e-05/0.2567, allocations: 0 / 379.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.702e-05/0.2567, allocations: 8.219 kB / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of SimCode: time 1.213e-06/0.2567, allocations: 0 / 379.9 MB, free: 12.98 MB / 318.1 MB Notification: Performance of Templates: time 0.003414/0.2601, allocations: 0.6705 MB / 380.5 MB, free: 12.95 MB / 318.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 -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","/var/lib/jenkins/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