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.0009179/0.0009179, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001156/0.001156, allocations: 163 kB / 24.99 MB, free: 8.758 MB / 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 0.9609/0.9609, allocations: 177.1 MB / 205.3 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] 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.433e-06/1.433e-06, allocations: 0 / 273 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.81e-05/1.954e-05, allocations: 6.312 kB / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.00131/0.00133, allocations: 497.7 kB / 273.5 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002277/0.001558, allocations: 71.73 kB / 273.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.001588, allocations: 0 / 273.6 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.762e-05/0.001626, allocations: 3.938 kB / 273.6 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.832e-05/0.001694, allocations: 11.98 kB / 273.6 MB, free: 1.281 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001575/0.001852, allocations: 23.91 kB / 273.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.002e-05/0.001942, allocations: 19.97 kB / 273.6 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.619e-05/0.001978, allocations: 0 / 273.6 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.248e-05/0.00202, allocations: 15.98 kB / 273.6 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.609e-05/0.002096, allocations: 27.95 kB / 273.7 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.002111, allocations: 0 / 273.7 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.235e-05/0.002154, allocations: 15.94 kB / 273.7 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.776e-05/0.002192, allocations: 7.938 kB / 273.7 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.883e-05/0.00222, allocations: 7.984 kB / 273.7 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.745e-05/0.002318, allocations: 23.92 kB / 273.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.00232, allocations: 0 / 273.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.002321, allocations: 0 / 273.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.002324, allocations: 0 / 273.7 MB, free: 1.141 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.0003107/0.002635, allocations: 390.3 kB / 274.1 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.002673, allocations: 12.03 kB / 274.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.002715, allocations: 8.891 kB / 274.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.552e-05/0.002811, allocations: 112.6 kB / 274.2 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.002824, allocations: 8.375 kB / 274.2 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-06/0.002832, allocations: 384 / 274.2 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.187e-05/0.002924, allocations: 63.95 kB / 274.3 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.002932, allocations: 8.109 kB / 274.3 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.002943, allocations: 4.359 kB / 274.3 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.002951, allocations: 4.375 kB / 274.3 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.51e-05/0.002976, allocations: 33.64 kB / 274.4 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/0.003078, allocations: 116.7 kB / 274.5 MB, free: 280 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.172e-05/0.00313, allocations: 64.77 kB / 274.5 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.824e-05/0.003158, allocations: 37.47 kB / 274.6 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-06/0.003163, allocations: 11.98 kB / 274.6 MB, free: 136 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.003197, allocations: 59.09 kB / 274.6 MB, free: 60 kB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 8.51e-07/0.003198, allocations: 0 / 274.6 MB, free: 60 kB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002208/0.003419, allocations: 162.7 kB / 274.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.00346, allocations: 81.11 kB / 274.9 MB, free: 15.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.21e-05/0.003552, allocations: 173.9 kB / 275 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.003565, allocations: 25.7 kB / 275.1 MB, free: 15.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.00361, allocations: 134.9 kB / 275.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.003628, allocations: 7.891 kB / 275.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.003684, allocations: 23.38 kB / 275.2 MB, free: 15.38 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.003812, allocations: 0.4884 MB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.392e-05/0.003835, allocations: 37.98 kB / 275.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.144e-05/0.003857, allocations: 33.69 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.736e-05/0.003914, allocations: 83.03 kB / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.003916, allocations: 0 / 275.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001053/0.004021, allocations: 121.1 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.004049, allocations: 33.7 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.004053, allocations: 0 / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.004064, allocations: 0 / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.004065, allocations: 0 / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.00407, allocations: 0 / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.769e-05/0.004087, allocations: 7.953 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.004096, allocations: 11.98 kB / 276 MB, free: 14.51 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.052e-05/0.004176, allocations: 186.3 kB / 276.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.004189, allocations: 8 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.004201, allocations: 11.94 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.004203, allocations: 3.938 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.004206, allocations: 0 / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.00421, allocations: 7.922 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.177e-05/0.004282, allocations: 116.6 kB / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.004283, allocations: 0 / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.004283, allocations: 0 / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.004286, allocations: 7.984 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-06/0.004295, allocations: 4 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.004296, allocations: 0 / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.004298, allocations: 0 / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001505/0.004448, allocations: 175.9 kB / 276.6 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.895e-06/0.004456, allocations: 7.984 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.004472, allocations: 0 / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.135e-05/0.004483, allocations: 4 kB / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.145e-05/0.004495, allocations: 0 / 276.6 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.0045, allocations: 4 kB / 276.6 MB, free: 13.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.037e-05/0.00455, allocations: 135.2 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.004551, allocations: 4.031 kB / 276.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001984/0.004749, allocations: 15.88 kB / 276.7 MB, free: 13.74 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.0002306/0.00498, allocations: 132.2 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.005086, allocations: 138.5 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.005087, allocations: 0 / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.07e-05/0.005128, allocations: 108.8 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.649e-05/0.005224, allocations: 4 kB / 277.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001763/0.005401, allocations: 159.9 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.021e-05/0.005431, allocations: 59.34 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.005435, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-06/0.005444, allocations: 8.5 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of SimCode: time 4e-07/0.005445, allocations: 0 / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of Templates: time 0.001988/0.007433, allocations: 0.6991 MB / 278 MB, free: 12.36 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","",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.7685010000132024]