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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001746/0.001746, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002069/0.002069, allocations: 153.4 kB / 24.26 MB, free: 180 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.575e-06/2.575e-06, allocations: 0 / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.05e-05/4.307e-05, allocations: 2.312 kB / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002789/0.002832, allocations: 485 kB / 267.8 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003781/0.00321, allocations: 59.8 kB / 267.8 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.576e-05/0.003256, allocations: 0 / 267.8 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.918e-05/0.003315, allocations: 4 kB / 267.8 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.698e-05/0.003412, allocations: 19.91 kB / 267.8 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.003638, allocations: 23.91 kB / 267.9 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.003757, allocations: 19.98 kB / 267.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.173e-05/0.003798, allocations: 3.984 kB / 267.9 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.495e-05/0.003853, allocations: 11.98 kB / 267.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.003971, allocations: 31.89 kB / 267.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.003991, allocations: 0 / 267.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.998e-05/0.004051, allocations: 12 kB / 267.9 MB, free: 6.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.004097, allocations: 0 / 267.9 MB, free: 6.086 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.795e-05/0.004135, allocations: 11.94 kB / 268 MB, free: 6.074 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.004282, allocations: 31.91 kB / 268 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.004285, allocations: 0 / 268 MB, free: 6.043 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.004286, allocations: 0 / 268 MB, free: 6.043 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.004291, allocations: 0 / 268 MB, free: 6.043 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.0004354/0.004726, allocations: 295.9 kB / 268.3 MB, free: 5.715 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.004766, allocations: 12.92 kB / 268.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.004812, allocations: 0.9375 kB / 268.3 MB, free: 5.703 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.004942, allocations: 109.8 kB / 268.4 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.004956, allocations: 384 / 268.4 MB, free: 5.57 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.004968, allocations: 4.375 kB / 268.4 MB, free: 5.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.005128, allocations: 95.94 kB / 268.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.005137, allocations: 192 / 268.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.005145, allocations: 384 / 268.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.00515, allocations: 384 / 268.5 MB, free: 5.461 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.035e-05/0.00523, allocations: 61.56 kB / 268.6 MB, free: 5.395 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.005379, allocations: 105.4 kB / 268.7 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.005486, allocations: 72.27 kB / 268.7 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.137e-05/0.005557, allocations: 58.62 kB / 268.8 MB, free: 5.109 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.005567, allocations: 0 / 268.8 MB, free: 5.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.62e-05/0.005643, allocations: 64.27 kB / 268.9 MB, free: 5.031 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 3.456e-06/0.005647, allocations: 4 kB / 268.9 MB, free: 5.027 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004233/0.00607, allocations: 242.7 kB / 269.1 MB, free: 4.766 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.006148, allocations: 81.11 kB / 269.2 MB, free: 4.668 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.006285, allocations: 117.7 kB / 269.3 MB, free: 4.543 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.006307, allocations: 25.7 kB / 269.3 MB, free: 4.512 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.828e-05/0.006375, allocations: 89.53 kB / 269.4 MB, free: 4.422 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.006397, allocations: 7.891 kB / 269.4 MB, free: 4.414 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.006448, allocations: 25.7 kB / 269.4 MB, free: 4.383 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.006638, allocations: 314.8 kB / 269.7 MB, free: 4.066 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.079e-05/0.006708, allocations: 57.69 kB / 269.8 MB, free: 4.004 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.767e-05/0.006766, allocations: 53.69 kB / 269.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.006908, allocations: 128.2 kB / 270 MB, free: 3.805 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.00691, allocations: 0 / 270 MB, free: 3.805 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002375/0.007147, allocations: 181.1 kB / 270.1 MB, free: 3.609 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.127e-05/0.007199, allocations: 37.69 kB / 270.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.007204, allocations: 0 / 270.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.007225, allocations: 0 / 270.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.007226, allocations: 0 / 270.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.007231, allocations: 0 / 270.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.325e-05/0.007254, allocations: 3.938 kB / 270.2 MB, free: 3.562 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.834e-06/0.007262, allocations: 4 kB / 270.2 MB, free: 3.559 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 0.0001386/0.0074, allocations: 147.6 kB / 270.3 MB, free: 3.398 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.007422, allocations: 8.203 kB / 270.3 MB, free: 3.391 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.634e-05/0.007449, allocations: 12 kB / 270.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.007451, allocations: 192 / 270.4 MB, free: 3.371 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.007461, allocations: 4 kB / 270.4 MB, free: 3.367 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.007473, allocations: 11.91 kB / 270.4 MB, free: 3.355 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.007592, allocations: 101.3 kB / 270.5 MB, free: 3.227 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.007594, allocations: 3.938 kB / 270.5 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.22e-07/0.007594, allocations: 0 / 270.5 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.007596, allocations: 0 / 270.5 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.007609, allocations: 7.984 kB / 270.5 MB, free: 3.215 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.007611, allocations: 4 kB / 270.5 MB, free: 3.211 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.007612, allocations: 0 / 270.5 MB, free: 3.211 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.007915, allocations: 228.4 kB / 270.7 MB, free: 2.957 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.197e-05/0.007927, allocations: 7.953 kB / 270.7 MB, free: 2.949 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.007944, allocations: 0 / 270.7 MB, free: 2.949 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.638e-05/0.00796, allocations: 4 kB / 270.7 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.007977, allocations: 0 / 270.7 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.007987, allocations: 7.984 kB / 270.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.033e-05/0.008058, allocations: 91.27 kB / 270.8 MB, free: 2.848 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008058, allocations: 0 / 270.8 MB, free: 2.848 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.008262, allocations: 11.94 kB / 270.8 MB, free: 2.836 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.0003911/0.008653, allocations: 146.1 kB / 271 MB, free: 2.707 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.008896, allocations: 182.7 kB / 271.2 MB, free: 2.504 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.008898, allocations: 0 / 271.2 MB, free: 2.504 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.009022, allocations: 113.1 kB / 271.3 MB, free: 2.375 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.009182, allocations: 4 kB / 271.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003533/0.009535, allocations: 182.4 kB / 271.4 MB, free: 2.16 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.026e-05/0.009615, allocations: 63.34 kB / 271.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.51e-06/0.009621, allocations: 0 / 271.5 MB, free: 2.078 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.599e-05/0.009637, allocations: 12.5 kB / 271.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009637, allocations: 0 / 271.5 MB, free: 2.066 MB / 250.7 MB Notification: Performance of Templates: time 0.003431/0.01307, allocations: 0.6987 MB / 272.2 MB, free: 1.379 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.189458005013876]