Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001149/0.001149, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001634/0.002783, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001461/0.002564, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9889/0.9889, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1037/1.093, allocations: 53.88 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.079e-05/1.222e-05, allocations: 2.312 kB / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009502/0.0009625, allocations: 0.5363 MB / 245.7 MB, free: 13.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 9.063e-05/0.001053, allocations: 59.73 kB / 245.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.961e-05/0.001073, allocations: 4 kB / 245.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.001088, allocations: 0 / 245.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.408e-05/0.001132, allocations: 19.95 kB / 245.8 MB, free: 12.99 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.236e-05/0.001194, allocations: 19.92 kB / 245.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.161e-05/0.001276, allocations: 19.97 kB / 245.8 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.001311, allocations: 8 kB / 245.8 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.957e-05/0.00136, allocations: 23.92 kB / 245.9 MB, free: 12.92 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.001424, allocations: 19.97 kB / 245.9 MB, free: 12.9 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.001439, allocations: 0 / 245.9 MB, free: 12.9 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.909e-05/0.001478, allocations: 8 kB / 245.9 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.945e-05/0.001518, allocations: 3.984 kB / 245.9 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.686e-05/0.001535, allocations: 7.938 kB / 245.9 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.357e-05/0.001618, allocations: 31.86 kB / 245.9 MB, free: 12.85 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.357e-06/0.001628, allocations: 0 / 245.9 MB, free: 12.85 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.001628, allocations: 0 / 245.9 MB, free: 12.85 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.001636, allocations: 0 / 245.9 MB, free: 12.85 MB / 250.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.0002618/0.001898, allocations: 262.3 kB / 246.2 MB, free: 12.56 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.001928, allocations: 12.62 kB / 246.2 MB, free: 12.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.001958, allocations: 4.938 kB / 246.2 MB, free: 12.54 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.225e-05/0.00204, allocations: 117.6 kB / 246.3 MB, free: 12.4 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.002051, allocations: 4.375 kB / 246.3 MB, free: 12.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.002064, allocations: 8.359 kB / 246.3 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.692e-05/0.002141, allocations: 66.78 kB / 246.4 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.002147, allocations: 192 / 246.4 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-06/0.002153, allocations: 384 / 246.4 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.002158, allocations: 384 / 246.4 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.063e-05/0.002179, allocations: 41.58 kB / 246.4 MB, free: 12.27 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.237e-05/0.002241, allocations: 67.86 kB / 246.5 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.464e-05/0.002286, allocations: 52.27 kB / 246.6 MB, free: 12.12 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.002307, allocations: 34.59 kB / 246.6 MB, free: 12.07 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-06/0.002311, allocations: 0 / 246.6 MB, free: 12.07 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.002349, allocations: 72.34 kB / 246.7 MB, free: 11.99 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 5.51e-07/0.00235, allocations: 0 / 246.7 MB, free: 11.99 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001389/0.002489, allocations: 138.7 kB / 246.8 MB, free: 11.83 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.002553, allocations: 162.2 kB / 247 MB, free: 11.63 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.002618, allocations: 110.7 kB / 247.1 MB, free: 11.51 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.002629, allocations: 29.7 kB / 247.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.083e-05/0.00265, allocations: 84.16 kB / 247.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.002671, allocations: 7.953 kB / 247.2 MB, free: 11.38 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.887e-05/0.0027, allocations: 21.7 kB / 247.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.002788, allocations: 318.8 kB / 247.5 MB, free: 11.04 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.425e-05/0.002812, allocations: 40.52 kB / 247.6 MB, free: 10.99 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.757e-05/0.00283, allocations: 29.7 kB / 247.6 MB, free: 10.95 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.974e-05/0.002879, allocations: 79.08 kB / 247.7 MB, free: 10.86 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.002881, allocations: 0 / 247.7 MB, free: 10.86 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.669e-05/0.002948, allocations: 109 kB / 247.8 MB, free: 10.73 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/0.00299, allocations: 33.7 kB / 247.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.002994, allocations: 0 / 247.8 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.003007, allocations: 4.062 kB / 247.8 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.00301, allocations: 0 / 247.8 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.003013, allocations: 3.984 kB / 247.8 MB, free: 10.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.687e-05/0.00303, allocations: 4 kB / 247.8 MB, free: 10.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.00304, allocations: 0 / 247.8 MB, free: 10.68 MB / 250.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 7.542e-05/0.003115, allocations: 150.3 kB / 248 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.752e-06/0.003122, allocations: 4 kB / 248 MB, free: 10.52 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.446e-05/0.003136, allocations: 15.92 kB / 248 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.003138, allocations: 0 / 248 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.003139, allocations: 0 / 248 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.003142, allocations: 0 / 248 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.443e-05/0.003197, allocations: 73.84 kB / 248 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.003197, allocations: 0 / 248 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.003198, allocations: 0 / 248 MB, free: 10.41 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-06/0.003206, allocations: 11.88 kB / 248.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.003207, allocations: 0 / 248.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-06/0.003214, allocations: 7.984 kB / 248.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.003216, allocations: 3.938 kB / 248.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.003216, allocations: 256 / 248.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.003326, allocations: 142.1 kB / 248.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.894e-05/0.003425, allocations: 8 kB / 248.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.003434, allocations: 0 / 248.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.105e-05/0.003445, allocations: 4.031 kB / 248.2 MB, free: 10.2 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.00345, allocations: 4.188 kB / 248.2 MB, free: 10.2 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.668e-05/0.003467, allocations: 16.84 kB / 248.2 MB, free: 10.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003467, allocations: 0 / 248.2 MB, free: 10.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001049/0.003572, allocations: 8 kB / 248.2 MB, free: 10.17 MB / 250.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.0002447/0.003817, allocations: 128.8 kB / 248.4 MB, free: 10.06 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.00392, allocations: 147.6 kB / 248.5 MB, free: 9.887 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.003923, allocations: 0 / 248.5 MB, free: 9.887 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.278e-05/0.003966, allocations: 106 kB / 248.6 MB, free: 9.762 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.3e-05/0.004029, allocations: 11.92 kB / 248.6 MB, free: 9.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001741/0.004203, allocations: 159.8 kB / 248.8 MB, free: 9.559 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.081e-05/0.004234, allocations: 63.28 kB / 248.9 MB, free: 9.477 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.769e-06/0.004239, allocations: 0 / 248.9 MB, free: 9.477 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.004304, allocations: 71.34 kB / 248.9 MB, free: 9.406 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.004305, allocations: 192 / 248.9 MB, free: 9.406 MB / 250.7 MB Notification: Performance of Templates: time 0.002124/0.006429, allocations: 0.7504 MB / 249.7 MB, free: 8.664 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5804221676662564]