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.001167/0.001167, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 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.001113/0.001113, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 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 1.006/1.006, allocations: 177 MB / 204.8 MB, free: 5.242 MB / 186.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.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.363 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.279e-05/2.442e-05, allocations: 5.266 kB / 272.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001049/0.001073, allocations: 0.4989 MB / 273.4 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002324/0.001306, allocations: 63.8 kB / 273.4 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.165e-05/0.001337, allocations: 0 / 273.4 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.703e-05/0.001384, allocations: 0 / 273.4 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.292e-05/0.001467, allocations: 15.92 kB / 273.4 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.001636, allocations: 23.91 kB / 273.5 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.367e-05/0.00172, allocations: 19.98 kB / 273.5 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.663e-05/0.001756, allocations: 3.984 kB / 273.5 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.016e-05/0.001796, allocations: 15.92 kB / 273.5 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.402e-05/0.00186, allocations: 23.97 kB / 273.5 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.687e-05/0.001877, allocations: 4 kB / 273.5 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.161e-05/0.001919, allocations: 8 kB / 273.5 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.953e-05/0.001958, allocations: 4 kB / 273.5 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.001986, allocations: 11.92 kB / 273.6 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001042/0.00209, allocations: 27.91 kB / 273.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.002093, allocations: 4 kB / 273.6 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.002094, allocations: 0 / 273.6 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.002098, allocations: 0 / 273.6 MB, free: 0.6367 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.0004751/0.002573, allocations: 386.3 kB / 274 MB, free: 220 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.002616, allocations: 15.98 kB / 274 MB, free: 204 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.002653, allocations: 8.891 kB / 274 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.96e-05/0.002733, allocations: 108.6 kB / 274.1 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.002744, allocations: 4.312 kB / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.002756, allocations: 4.375 kB / 274.1 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.002862, allocations: 63.95 kB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.00287, allocations: 192 / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.00288, allocations: 384 / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.002887, allocations: 384 / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.663e-05/0.002914, allocations: 45.62 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001043/0.003018, allocations: 112.7 kB / 274.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.773e-05/0.003076, allocations: 68.69 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.039e-05/0.003106, allocations: 41.42 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-06/0.003111, allocations: 0 / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.003151, allocations: 71.12 kB / 274.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 4.81e-07/0.003151, allocations: 0 / 274.5 MB, free: 15.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002206/0.003372, allocations: 154.7 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.003413, allocations: 85.09 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.026e-05/0.003503, allocations: 177.8 kB / 274.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.003513, allocations: 25.7 kB / 274.9 MB, free: 15.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.201e-05/0.003555, allocations: 134.9 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.922e-05/0.003574, allocations: 11.83 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.802e-05/0.003602, allocations: 31.41 kB / 275.1 MB, free: 14.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.00372, allocations: 496.1 kB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.524e-05/0.003745, allocations: 33.7 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.821e-05/0.003763, allocations: 33.7 kB / 275.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.154e-05/0.003815, allocations: 79.27 kB / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.003817, allocations: 0 / 275.7 MB, free: 14.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.745e-05/0.003904, allocations: 117.1 kB / 275.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.003932, allocations: 33.69 kB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.003938, allocations: 4 kB / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.003952, allocations: 0 / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.747e-06/0.003955, allocations: 0 / 275.9 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.003961, allocations: 8 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.003975, allocations: 8.141 kB / 275.9 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.003982, allocations: 4 kB / 275.9 MB, free: 14.01 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 8.255e-05/0.004065, allocations: 194.3 kB / 276.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.004075, allocations: 8 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.373e-05/0.004089, allocations: 4 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.00409, allocations: 0 / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.004093, allocations: 0 / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.004096, allocations: 3.938 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.91e-05/0.004155, allocations: 120.6 kB / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.004156, allocations: 4 kB / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.004157, allocations: 0 / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.004158, allocations: 0 / 276.2 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.004167, allocations: 7.984 kB / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.004167, allocations: 0 / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.004168, allocations: 0 / 276.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.00428, allocations: 183.7 kB / 276.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-06/0.004285, allocations: 0 / 276.4 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.004301, allocations: 4 kB / 276.4 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-06/0.004306, allocations: 0 / 276.4 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.233e-05/0.004319, allocations: 4 kB / 276.4 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.004321, allocations: 7.969 kB / 276.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.616e-05/0.004358, allocations: 135.2 kB / 276.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004358, allocations: 0 / 276.6 MB, free: 13.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000123/0.004481, allocations: 11.94 kB / 276.6 MB, free: 13.25 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.0002231/0.004704, allocations: 130.2 kB / 276.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001074/0.004811, allocations: 142.5 kB / 276.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.004813, allocations: 4.062 kB / 276.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.811e-05/0.004851, allocations: 100.8 kB / 276.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001104/0.004961, allocations: 8 kB / 277 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002058/0.005167, allocations: 159.8 kB / 277.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.201e-05/0.005199, allocations: 55.36 kB / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.009e-06/0.005204, allocations: 0 / 277.2 MB, free: 12.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.133e-05/0.005215, allocations: 8.5 kB / 277.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of SimCode: time 4.61e-07/0.005216, allocations: 0 / 277.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of Templates: time 0.002218/0.007434, allocations: 0.7053 MB / 277.9 MB, free: 11.85 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.879025631118566]