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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 102.2 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007668/0.0007669, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.2304, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002286/0.2328, allocations: 0.5468 MB / 400 MB, free: 32.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000357/0.2332, allocations: 63.8 kB / 400.1 MB, free: 32.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.924e-05/0.2332, allocations: 0 / 400.1 MB, free: 32.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.529e-05/0.2333, allocations: 0 / 400.1 MB, free: 32.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.963e-05/0.2333, allocations: 11.98 kB / 400.1 MB, free: 32.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.2335, allocations: 27.97 kB / 400.1 MB, free: 32.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.916e-05/0.2336, allocations: 15.98 kB / 400.1 MB, free: 32.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.891e-05/0.2336, allocations: 0 / 400.1 MB, free: 32.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.345e-05/0.2337, allocations: 15.97 kB / 400.1 MB, free: 32.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.183e-05/0.2338, allocations: 23.92 kB / 400.2 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.2338, allocations: 0 / 400.2 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.548e-05/0.2339, allocations: 8 kB / 400.2 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.096e-05/0.2339, allocations: 4 kB / 400.2 MB, free: 32.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.886e-05/0.234, allocations: 11.91 kB / 400.2 MB, free: 32.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.2341, allocations: 31.86 kB / 400.2 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2341, allocations: 0 / 400.2 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2341, allocations: 4 kB / 400.2 MB, free: 32.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2341, allocations: 4 kB / 400.2 MB, free: 32.62 MB / 298.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.0003242/0.2345, allocations: 357.2 kB / 400.6 MB, free: 32.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2345, allocations: 8.031 kB / 400.6 MB, free: 32.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.2346, allocations: 4.844 kB / 400.6 MB, free: 32.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.174e-05/0.2347, allocations: 165.9 kB / 400.7 MB, free: 32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.2347, allocations: 384 / 400.7 MB, free: 32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.2347, allocations: 4.375 kB / 400.7 MB, free: 32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.2348, allocations: 62.23 kB / 400.8 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.2349, allocations: 192 / 400.8 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.2349, allocations: 7.875 kB / 400.8 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.2349, allocations: 0 / 400.8 MB, free: 31.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.31e-05/0.235, allocations: 35.92 kB / 400.9 MB, free: 31.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.2351, allocations: 157.7 kB / 401 MB, free: 31.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.129e-05/0.2352, allocations: 42.56 kB / 401 MB, free: 31.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.762e-05/0.2352, allocations: 36.92 kB / 401.1 MB, free: 31.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.729e-06/0.2353, allocations: 7.984 kB / 401.1 MB, free: 31.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.2353, allocations: 60.27 kB / 401.2 MB, free: 31.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.443e-06/0.2353, allocations: 0 / 401.2 MB, free: 31.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003091/0.2356, allocations: 195.1 kB / 401.3 MB, free: 31.31 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.998e-05/0.2357, allocations: 77.11 kB / 401.4 MB, free: 31.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.2358, allocations: 113.8 kB / 401.5 MB, free: 31.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-06/0.2358, allocations: 29.64 kB / 401.6 MB, free: 31.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.872e-05/0.2358, allocations: 88.12 kB / 401.6 MB, free: 30.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.2359, allocations: 11.94 kB / 401.7 MB, free: 30.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.005e-05/0.2359, allocations: 17.72 kB / 401.7 MB, free: 30.94 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.403e-05/0.236, allocations: 310.8 kB / 402 MB, free: 30.62 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.944e-05/0.236, allocations: 27.98 kB / 402 MB, free: 30.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.824e-05/0.2361, allocations: 27.98 kB / 402 MB, free: 30.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.2362, allocations: 120.2 kB / 402.1 MB, free: 30.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2362, allocations: 256 / 402.1 MB, free: 30.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001908/0.2364, allocations: 151.3 kB / 402.3 MB, free: 30.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.797e-05/0.2365, allocations: 37.75 kB / 402.3 MB, free: 30.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2365, allocations: 15.94 kB / 402.3 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.2365, allocations: 0 / 402.3 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.2365, allocations: 0 / 402.3 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2365, allocations: 0 / 402.3 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.87e-05/0.2366, allocations: 0 / 402.3 MB, free: 30.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.2366, allocations: 4 kB / 402.4 MB, free: 30.21 MB / 298.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 (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.678e-05/0.2367, allocations: 147.5 kB / 402.5 MB, free: 30.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.2367, allocations: 7.906 kB / 402.5 MB, free: 30.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.656e-05/0.2368, allocations: 7.844 kB / 402.5 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2368, allocations: 4 kB / 402.5 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2368, allocations: 0 / 402.5 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2368, allocations: 0 / 402.5 MB, free: 30.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.14e-05/0.2369, allocations: 161.7 kB / 402.7 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2369, allocations: 3.938 kB / 402.7 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.2369, allocations: 0 / 402.7 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2369, allocations: 0 / 402.7 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2369, allocations: 7.938 kB / 402.7 MB, free: 29.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2369, allocations: 0 / 402.7 MB, free: 29.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.237, allocations: 0 / 402.7 MB, free: 29.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004429/0.2374, allocations: 0.7846 MB / 403.5 MB, free: 28.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.273e-05/0.2374, allocations: 85.02 kB / 403.6 MB, free: 28.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.2375, allocations: 0 / 403.6 MB, free: 28.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.956e-05/0.2375, allocations: 0 / 403.6 MB, free: 28.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.861e-05/0.2375, allocations: 7.938 kB / 403.6 MB, free: 28.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.597e-06/0.2376, allocations: 4 kB / 403.6 MB, free: 28.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.897e-05/0.2376, allocations: 91.3 kB / 403.7 MB, free: 28.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2376, allocations: 0 / 403.7 MB, free: 28.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000527/0.2381, allocations: 12 kB / 403.7 MB, free: 28.75 MB / 298.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) * 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.0003341/0.2385, allocations: 140.3 kB / 403.8 MB, free: 28.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001823/0.2387, allocations: 123.4 kB / 403.9 MB, free: 28.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/0.2387, allocations: 4.062 kB / 403.9 MB, free: 28.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.889e-05/0.2388, allocations: 95.39 kB / 404 MB, free: 28.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.239, allocations: 7.922 kB / 404 MB, free: 28.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002912/0.2393, allocations: 253.5 kB / 404.3 MB, free: 28.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.2395, allocations: 0.6809 MB / 405 MB, free: 27.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.084e-05/0.2395, allocations: 0 / 405 MB, free: 27.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.715e-06/0.2395, allocations: 7.438 kB / 405 MB, free: 27.36 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2395, allocations: 4.062 kB / 405 MB, free: 27.36 MB / 298.7 MB Notification: Performance of Templates: time 0.003294/0.2428, allocations: 0.6694 MB / 405.6 MB, free: 26.7 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches