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.00102/0.00102, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.1 MB / 223.7 MB, free: 8.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000896/0.0008961, allocations: 105.5 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007714/0.0007714, allocations: 43.94 kB / 327.2 MB, free: 344 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1922, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001566/0.1938, allocations: 0.544 MB / 374.3 MB, free: 45.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002604/0.194, allocations: 65.64 kB / 374.4 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.1941, allocations: 0 / 374.4 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.555e-05/0.1941, allocations: 0.8906 kB / 374.4 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.896e-05/0.1942, allocations: 12.7 kB / 374.4 MB, free: 45.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1943, allocations: 28.91 kB / 374.5 MB, free: 45.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.523e-05/0.1944, allocations: 20.16 kB / 374.5 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.1944, allocations: 1.984 kB / 374.5 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.494e-05/0.1944, allocations: 13.16 kB / 374.5 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.1945, allocations: 23.84 kB / 374.5 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.1945, allocations: 1.375 kB / 374.5 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.493e-05/0.1945, allocations: 4.125 kB / 374.5 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.1946, allocations: 9.328 kB / 374.5 MB, free: 45.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.673e-05/0.1946, allocations: 11.28 kB / 374.5 MB, free: 45.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.623e-05/0.1947, allocations: 27.88 kB / 374.6 MB, free: 45.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1947, allocations: 4.75 kB / 374.6 MB, free: 45.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1947, allocations: 0 / 374.6 MB, free: 45.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.075e-06/0.1947, allocations: 1.375 kB / 374.6 MB, free: 45.23 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.0002591/0.195, allocations: 363.9 kB / 374.9 MB, free: 44.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.195, allocations: 8.906 kB / 374.9 MB, free: 44.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.523e-05/0.1951, allocations: 6.625 kB / 374.9 MB, free: 44.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.52e-05/0.1951, allocations: 167.8 kB / 375.1 MB, free: 44.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.1952, allocations: 1.531 kB / 375.1 MB, free: 44.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.1952, allocations: 1.5 kB / 375.1 MB, free: 44.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.1953, allocations: 66.11 kB / 375.2 MB, free: 44.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1953, allocations: 1.438 kB / 375.2 MB, free: 44.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1953, allocations: 3.938 kB / 375.2 MB, free: 44.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1953, allocations: 0.8438 kB / 375.2 MB, free: 44.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.232e-05/0.1954, allocations: 30.44 kB / 375.2 MB, free: 44.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.887e-05/0.1955, allocations: 157.9 kB / 375.4 MB, free: 44.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.587e-05/0.1955, allocations: 47.08 kB / 375.4 MB, free: 44.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.963e-05/0.1956, allocations: 35.58 kB / 375.4 MB, free: 44.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.1956, allocations: 5.234 kB / 375.4 MB, free: 44.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.1956, allocations: 62.44 kB / 375.5 MB, free: 44.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.233e-06/0.1956, allocations: 0 / 375.5 MB, free: 44.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002798/0.1959, allocations: 189.1 kB / 375.7 MB, free: 44.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.196, allocations: 79.44 kB / 375.8 MB, free: 44.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.921e-05/0.196, allocations: 115.2 kB / 375.9 MB, free: 43.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.893e-06/0.196, allocations: 25.7 kB / 375.9 MB, free: 43.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.916e-05/0.1961, allocations: 87.22 kB / 376 MB, free: 43.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.1961, allocations: 5.766 kB / 376 MB, free: 43.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.1961, allocations: 24.89 kB / 376 MB, free: 43.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.717e-05/0.1962, allocations: 313.5 kB / 376.3 MB, free: 43.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.484e-05/0.1962, allocations: 29.56 kB / 376.4 MB, free: 43.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.722e-05/0.1962, allocations: 27.92 kB / 376.4 MB, free: 43.53 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.308e-05/0.1963, allocations: 116.9 kB / 376.5 MB, free: 43.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1963, allocations: 256 / 376.5 MB, free: 43.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001272/0.1964, allocations: 163.8 kB / 376.7 MB, free: 43.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1965, allocations: 32.98 kB / 376.7 MB, free: 43.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1965, allocations: 7.938 kB / 376.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1965, allocations: 1.125 kB / 376.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1965, allocations: 0 / 376.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1965, allocations: 3.984 kB / 376.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.697e-05/0.1965, allocations: 2.281 kB / 376.7 MB, free: 43.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.1966, allocations: 2.25 kB / 376.7 MB, free: 43.31 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 4.829e-05/0.1966, allocations: 139.7 kB / 376.8 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.132e-05/0.1966, allocations: 10.2 kB / 376.9 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.079e-05/0.1966, allocations: 18.28 kB / 376.9 MB, free: 43.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.82e-07/0.1966, allocations: 0 / 376.9 MB, free: 43.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1967, allocations: 1.281 kB / 376.9 MB, free: 43.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1967, allocations: 0 / 376.9 MB, free: 43.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.933e-05/0.1967, allocations: 153 kB / 377 MB, free: 42.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.1967, allocations: 0 / 377 MB, free: 42.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1967, allocations: 0 / 377 MB, free: 42.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1967, allocations: 1.031 kB / 377 MB, free: 42.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.976e-06/0.1967, allocations: 14.11 kB / 377 MB, free: 42.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1967, allocations: 0 / 377 MB, free: 42.94 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1967, allocations: 5.094 kB / 377 MB, free: 42.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.197, allocations: 0.7737 MB / 377.8 MB, free: 42.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.1971, allocations: 86.23 kB / 377.9 MB, free: 42.12 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.1971, allocations: 1.969 kB / 377.9 MB, free: 42.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.153e-05/0.1971, allocations: 1.031 kB / 377.9 MB, free: 42.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.382e-05/0.1971, allocations: 5.219 kB / 377.9 MB, free: 42.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.1971, allocations: 6.25 kB / 377.9 MB, free: 42.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.638e-05/0.1972, allocations: 88.3 kB / 378 MB, free: 42.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1972, allocations: 0 / 378 MB, free: 42.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002661/0.1974, allocations: 12.81 kB / 378 MB, free: 42.03 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.0002108/0.1976, allocations: 134.5 kB / 378.1 MB, free: 41.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.1978, allocations: 131.3 kB / 378.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1978, allocations: 0 / 378.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.003e-05/0.1978, allocations: 94.23 kB / 378.4 MB, free: 41.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001203/0.198, allocations: 12.19 kB / 378.4 MB, free: 41.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002454/0.1982, allocations: 248.8 kB / 378.6 MB, free: 41.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.1983, allocations: 0.6845 MB / 379.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.151e-06/0.1983, allocations: 4.109 kB / 379.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.57e-06/0.1984, allocations: 12.66 kB / 379.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1984, allocations: 3.938 kB / 379.3 MB, free: 40.8 MB / 298.7 MB Notification: Performance of Templates: time 0.002092/0.2005, allocations: 0.6572 MB / 380 MB, free: 40.48 MB / 298.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@2/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