Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 91.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 165.6 kB / 24.28 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.626/1.626, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 272.3 MB, free: 1.895 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.733e-05, allocations: 2.312 kB / 272.3 MB, free: 1.891 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001592/0.001619, allocations: 0.4979 MB / 272.8 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002493/0.001869, allocations: 59.81 kB / 272.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.752e-05/0.001896, allocations: 0 / 272.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.102e-05/0.001937, allocations: 0 / 272.8 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.799e-05/0.002015, allocations: 19.95 kB / 272.8 MB, free: 1.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.002165, allocations: 23.86 kB / 272.9 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.353e-05/0.002248, allocations: 19.98 kB / 272.9 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.389e-05/0.002282, allocations: 7.984 kB / 272.9 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.962e-05/0.002332, allocations: 15.92 kB / 272.9 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.721e-05/0.002409, allocations: 23.97 kB / 272.9 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.484e-05/0.002434, allocations: 0 / 272.9 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.555e-05/0.002479, allocations: 8 kB / 272.9 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.116e-05/0.002521, allocations: 7.984 kB / 272.9 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.878e-05/0.002549, allocations: 7.938 kB / 273 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.765e-05/0.002647, allocations: 23.97 kB / 273 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.002651, allocations: 4 kB / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.002652, allocations: 0 / 273 MB, free: 1.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.002655, allocations: 4 kB / 273 MB, free: 1.176 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.0004377/0.003093, allocations: 389.9 kB / 273.4 MB, free: 0.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.003128, allocations: 8.031 kB / 273.4 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.304e-05/0.003171, allocations: 8.891 kB / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.003288, allocations: 116.5 kB / 273.5 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.003299, allocations: 384 / 273.5 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.00331, allocations: 4.375 kB / 273.5 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.003433, allocations: 67.95 kB / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.00344, allocations: 192 / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.334e-06/0.003447, allocations: 384 / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.003451, allocations: 384 / 273.6 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.568e-05/0.003497, allocations: 41.64 kB / 273.6 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.003643, allocations: 116.7 kB / 273.7 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.531e-05/0.003739, allocations: 72.69 kB / 273.8 MB, free: 232 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.939e-05/0.003788, allocations: 45.45 kB / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.003796, allocations: 0 / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.694e-05/0.003853, allocations: 63.09 kB / 273.9 MB, free: 96 kB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.003853, allocations: 0 / 273.9 MB, free: 96 kB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002999/0.004153, allocations: 158.7 kB / 274.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.004222, allocations: 85.05 kB / 274.1 MB, free: 15.81 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.004487, allocations: 177.8 kB / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.004508, allocations: 29.73 kB / 274.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.872e-05/0.004587, allocations: 134.9 kB / 274.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.004608, allocations: 7.891 kB / 274.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.748e-05/0.004655, allocations: 31.36 kB / 274.5 MB, free: 15.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/0.004915, allocations: 492.1 kB / 275 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.226e-05/0.004957, allocations: 37.7 kB / 275 MB, free: 14.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.648e-05/0.004994, allocations: 33.69 kB / 275.1 MB, free: 14.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.569e-05/0.00508, allocations: 79.08 kB / 275.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.005081, allocations: 0 / 275.1 MB, free: 14.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000149/0.00523, allocations: 121 kB / 275.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.866e-05/0.005279, allocations: 37.77 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.005283, allocations: 0 / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.005295, allocations: 0 / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.32e-06/0.0053, allocations: 4.234 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.005304, allocations: 4 kB / 275.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.22e-05/0.005326, allocations: 7.938 kB / 275.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.005336, allocations: 4 kB / 275.3 MB, free: 14.54 MB / 266.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 0.0001375/0.005474, allocations: 186.3 kB / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.005492, allocations: 7.953 kB / 275.5 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.589e-05/0.005508, allocations: 11.98 kB / 275.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.005509, allocations: 0 / 275.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.005512, allocations: 4 kB / 275.5 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.005517, allocations: 3.938 kB / 275.5 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/0.005634, allocations: 120.6 kB / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.005635, allocations: 0 / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.005636, allocations: 0 / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.005637, allocations: 0 / 275.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.005647, allocations: 4 kB / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.005648, allocations: 0 / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.005649, allocations: 0 / 275.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002262/0.005875, allocations: 183.7 kB / 275.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.436e-06/0.005883, allocations: 4 kB / 275.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.005898, allocations: 4.031 kB / 275.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.676e-05/0.005915, allocations: 4 kB / 275.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.342e-05/0.005928, allocations: 0 / 275.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.005935, allocations: 7.922 kB / 275.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.027e-05/0.006016, allocations: 131.2 kB / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.006016, allocations: 0 / 276 MB, free: 13.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.006211, allocations: 11.94 kB / 276 MB, free: 13.78 MB / 266.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.0004255/0.006636, allocations: 144.6 kB / 276.1 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.006822, allocations: 142.5 kB / 276.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.006828, allocations: 4 kB / 276.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.64e-05/0.006925, allocations: 112.7 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.007062, allocations: 8 kB / 276.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002839/0.007346, allocations: 155.9 kB / 276.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.44e-05/0.00741, allocations: 59.34 kB / 276.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.689e-06/0.007415, allocations: 4 kB / 276.6 MB, free: 13.06 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.329e-05/0.007428, allocations: 12.62 kB / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.007429, allocations: 0 / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Templates: time 0.003371/0.0108, allocations: 0.6799 MB / 277.3 MB, free: 12.38 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.464553292025812]