Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.0.0_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.001073/0.001073, allocations: 114.2 kB / 17.75 MB, free: 5.355 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.001042/0.001042, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009423/0.0009423, allocations: 47.92 kB / 351.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.207, allocations: 49.43 MB / 401.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001485/0.2085, allocations: 495.8 kB / 401.9 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002349/0.2087, allocations: 63.8 kB / 401.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.927e-05/0.2088, allocations: 0 / 401.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.272e-05/0.2088, allocations: 0 / 401.9 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.215e-05/0.2089, allocations: 19.91 kB / 401.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001495/0.2091, allocations: 19.97 kB / 402 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.042e-05/0.2092, allocations: 19.98 kB / 402 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.517e-05/0.2092, allocations: 0 / 402 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.681e-05/0.2092, allocations: 11.98 kB / 402 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.608e-05/0.2093, allocations: 27.91 kB / 402 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.2093, allocations: 3.938 kB / 402 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.074e-05/0.2094, allocations: 12 kB / 402 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.572e-05/0.2094, allocations: 4 kB / 402 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.935e-05/0.2094, allocations: 11.92 kB / 402.1 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.896e-05/0.2095, allocations: 27.91 kB / 402.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2096, allocations: 4 kB / 402.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2096, allocations: 0 / 402.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.2096, allocations: 0 / 402.1 MB, free: 8.355 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.0003046/0.2099, allocations: 353.2 kB / 402.4 MB, free: 7.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.2099, allocations: 8.031 kB / 402.4 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/0.21, allocations: 4.938 kB / 402.4 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2101, allocations: 173.6 kB / 402.6 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.2101, allocations: 4.375 kB / 402.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.005e-06/0.2101, allocations: 384 / 402.6 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.2102, allocations: 58.23 kB / 402.7 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.2102, allocations: 192 / 402.7 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2102, allocations: 7.938 kB / 402.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.2103, allocations: 0 / 402.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.2103, allocations: 31.86 kB / 402.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.2104, allocations: 165.6 kB / 402.9 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.655e-05/0.2105, allocations: 50.56 kB / 402.9 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.866e-05/0.2105, allocations: 36.91 kB / 403 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.093e-06/0.2106, allocations: 0 / 403 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.2106, allocations: 60.27 kB / 403 MB, free: 7.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.2106, allocations: 0 / 403 MB, free: 7.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002801/0.2109, allocations: 187.2 kB / 403.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.2109, allocations: 81.14 kB / 403.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.432e-05/0.211, allocations: 113.8 kB / 403.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.211, allocations: 25.7 kB / 403.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.465e-05/0.2111, allocations: 88.12 kB / 403.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.2111, allocations: 7.906 kB / 403.5 MB, free: 6.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.2111, allocations: 13.72 kB / 403.5 MB, free: 6.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.05e-05/0.2112, allocations: 318.8 kB / 403.8 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.542e-05/0.2113, allocations: 23.98 kB / 403.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.802e-05/0.2113, allocations: 27.98 kB / 403.9 MB, free: 6.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.734e-05/0.2114, allocations: 124.3 kB / 404 MB, free: 6.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2114, allocations: 3.938 kB / 404 MB, free: 6.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001496/0.2116, allocations: 151.3 kB / 404.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.2116, allocations: 37.69 kB / 404.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.2116, allocations: 0 / 404.2 MB, free: 5.969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.2116, allocations: 3.938 kB / 404.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.2117, allocations: 0 / 404.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2117, allocations: 0 / 404.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.003e-05/0.2117, allocations: 4 kB / 404.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.2117, allocations: 0 / 404.2 MB, free: 5.961 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 8.843e-05/0.2118, allocations: 155.5 kB / 404.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.2118, allocations: 4 kB / 404.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.404e-05/0.2118, allocations: 7.844 kB / 404.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2118, allocations: 4.25 kB / 404.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2118, allocations: 0 / 404.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.182e-05/0.2119, allocations: 85.02 kB / 404.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.2119, allocations: 0 / 404.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.2119, allocations: 7.984 kB / 404.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.2119, allocations: 0 / 404.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002069/0.2122, allocations: 305.9 kB / 404.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002181/0.2124, allocations: 340.4 kB / 405.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.279e-05/0.2124, allocations: 39.98 kB / 405.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.226e-05/0.2125, allocations: 87.27 kB / 405.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of Backend: time 3e-07/0.2125, allocations: 0 / 405.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005111/0.213, allocations: 215.2 kB / 405.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of SimCode: time 0.0004905/0.2135, allocations: 0.6144 MB / 406 MB, free: 3.965 MB / 318.1 MB Notification: Performance of Templates: time 0.002647/0.2162, allocations: 0.6966 MB / 406.7 MB, free: 3.285 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches