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.0009599/0.0009599, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009013/0.0009013, allocations: 141.9 kB / 24.89 MB, free: 9.215 MB / 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.023/1.023, allocations: 173.3 MB / 201.5 MB, free: 9.188 MB / 186.7 MB " [Timeout remaining time 179] 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 1.813e-06/1.813e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.098e-05, allocations: 10.25 kB / 268.5 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001155/0.001176, allocations: 0.5364 MB / 269 MB, free: 5.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000173/0.001349, allocations: 65.12 kB / 269.1 MB, free: 5.574 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.124e-05/0.00137, allocations: 0 / 269.1 MB, free: 5.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.001399, allocations: 3.938 kB / 269.1 MB, free: 5.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.44e-05/0.001463, allocations: 15.97 kB / 269.1 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001206/0.001584, allocations: 19.92 kB / 269.1 MB, free: 5.535 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 6.876e-05/0.001652, allocations: 15.98 kB / 269.1 MB, free: 5.52 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.177e-05/0.001684, allocations: 3.984 kB / 269.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.329e-05/0.001718, allocations: 19.98 kB / 269.2 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.707e-05/0.001775, allocations: 23.97 kB / 269.2 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.001787, allocations: 0 / 269.2 MB, free: 5.473 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.118e-05/0.001818, allocations: 7.938 kB / 269.2 MB, free: 5.465 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.001848, allocations: 7.938 kB / 269.2 MB, free: 5.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.78e-05/0.001866, allocations: 8 kB / 269.2 MB, free: 5.449 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 7.032e-05/0.001936, allocations: 27.89 kB / 269.2 MB, free: 5.422 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.001938, allocations: 0 / 269.2 MB, free: 5.422 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.001938, allocations: 0 / 269.2 MB, free: 5.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.926e-06/0.001941, allocations: 4 kB / 269.2 MB, free: 5.418 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.0001887/0.00213, allocations: 266.6 kB / 269.5 MB, free: 5.125 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.525e-05/0.002155, allocations: 8.922 kB / 269.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.158e-05/0.002177, allocations: 4.938 kB / 269.5 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.382e-05/0.002241, allocations: 105.8 kB / 269.6 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.372e-06/0.002247, allocations: 4.312 kB / 269.6 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-06/0.002252, allocations: 384 / 269.6 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.882e-05/0.002311, allocations: 70.77 kB / 269.7 MB, free: 4.898 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-06/0.002316, allocations: 4.125 kB / 269.7 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-06/0.002322, allocations: 384 / 269.7 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-06/0.002326, allocations: 384 / 269.7 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.912e-05/0.002345, allocations: 41.64 kB / 269.7 MB, free: 4.848 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.132e-05/0.002406, allocations: 59.83 kB / 269.8 MB, free: 4.773 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.087e-05/0.002447, allocations: 56.31 kB / 269.8 MB, free: 4.703 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.002466, allocations: 34.59 kB / 269.9 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-06/0.002469, allocations: 0 / 269.9 MB, free: 4.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.002498, allocations: 60.27 kB / 269.9 MB, free: 4.586 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 4.91e-07/0.002499, allocations: 0 / 269.9 MB, free: 4.586 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001086/0.002607, allocations: 134.8 kB / 270.1 MB, free: 4.43 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.002638, allocations: 81.11 kB / 270.1 MB, free: 4.332 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.586e-05/0.002693, allocations: 114.7 kB / 270.3 MB, free: 4.207 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.002703, allocations: 25.7 kB / 270.3 MB, free: 4.176 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.068e-05/0.002723, allocations: 88.16 kB / 270.4 MB, free: 4.086 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.576e-05/0.002739, allocations: 11.89 kB / 270.4 MB, free: 4.074 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/0.002762, allocations: 17.7 kB / 270.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.024e-05/0.002833, allocations: 318.8 kB / 270.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.788e-05/0.002851, allocations: 36.77 kB / 270.7 MB, free: 3.688 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.641e-05/0.002867, allocations: 33.7 kB / 270.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.175e-05/0.002909, allocations: 87.19 kB / 270.9 MB, free: 3.547 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.00291, allocations: 0 / 270.9 MB, free: 3.547 MB / 250.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.664e-05/0.002966, allocations: 97.09 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.002992, allocations: 37.69 kB / 271 MB, free: 3.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/0.002995, allocations: 4.062 kB / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.396e-06/0.003004, allocations: 0 / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.003005, allocations: 0 / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.104e-06/0.003007, allocations: 0 / 271 MB, free: 3.387 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.132e-05/0.003018, allocations: 4 kB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.003023, allocations: 0 / 271 MB, free: 3.383 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 5.877e-05/0.003082, allocations: 146.3 kB / 271.1 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-06/0.003089, allocations: 8 kB / 271.2 MB, free: 3.215 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.003102, allocations: 8 kB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.003103, allocations: 7.875 kB / 271.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.003104, allocations: 0 / 271.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.003106, allocations: 4 kB / 271.2 MB, free: 3.191 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.623e-05/0.003152, allocations: 77.81 kB / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.003153, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.003153, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-07/0.003154, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-06/0.003158, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.81e-07/0.003158, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.003159, allocations: 0 / 271.2 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.035e-05/0.003239, allocations: 142.1 kB / 271.4 MB, free: 2.926 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-06/0.003246, allocations: 7.938 kB / 271.4 MB, free: 2.918 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.003257, allocations: 4 kB / 271.4 MB, free: 2.914 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.003269, allocations: 4.031 kB / 271.4 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-06/0.003277, allocations: 0 / 271.4 MB, free: 2.91 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/0.003282, allocations: 8 kB / 271.4 MB, free: 2.902 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.106e-05/0.003293, allocations: 12.86 kB / 271.4 MB, free: 2.887 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003293, allocations: 0 / 271.4 MB, free: 2.887 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.835e-05/0.003392, allocations: 11.94 kB / 271.4 MB, free: 2.875 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.0002016/0.003593, allocations: 128.5 kB / 271.6 MB, free: 2.762 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.653e-05/0.00368, allocations: 135.6 kB / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.003682, allocations: 0 / 271.7 MB, free: 2.602 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.78e-05/0.00372, allocations: 105.9 kB / 271.8 MB, free: 2.477 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.227e-05/0.003772, allocations: 3.938 kB / 271.8 MB, free: 2.473 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001497/0.003922, allocations: 155.9 kB / 272 MB, free: 2.285 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.786e-05/0.003949, allocations: 59.34 kB / 272 MB, free: 2.207 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.098e-06/0.003954, allocations: 0 / 272 MB, free: 2.207 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.517e-05/0.004009, allocations: 63.36 kB / 272.1 MB, free: 2.145 MB / 250.7 MB Notification: Performance of SimCode: time 5.61e-07/0.004009, allocations: 4.125 kB / 272.1 MB, free: 2.141 MB / 250.7 MB Notification: Performance of Templates: time 0.00191/0.00592, allocations: 0.7355 MB / 272.8 MB, free: 1.414 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] 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","",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.4635003418661654]