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.001089/0.001089, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001747/0.002835, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001117/0.001117, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001661/0.002779, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8631/0.8631, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1749/1.038, allocations: 52.49 MB / 238.5 MB, free: 7.641 MB / 234.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 / 239.7 MB, free: 6.406 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.309e-05/2.491e-05, allocations: 2.312 kB / 239.7 MB, free: 6.402 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001934/0.001959, allocations: 0.5338 MB / 240.2 MB, free: 5.891 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001393/0.002099, allocations: 63.73 kB / 240.3 MB, free: 5.828 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.059e-05/0.002119, allocations: 0.75 kB / 240.3 MB, free: 5.828 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.002137, allocations: 0 / 240.3 MB, free: 5.828 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.57e-05/0.002193, allocations: 24.64 kB / 240.3 MB, free: 5.805 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 8.334e-05/0.002276, allocations: 11.94 kB / 240.3 MB, free: 5.793 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.847e-05/0.002374, allocations: 24.69 kB / 240.4 MB, free: 5.77 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.002417, allocations: 15.92 kB / 240.4 MB, free: 5.754 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.931e-05/0.002476, allocations: 12.64 kB / 240.4 MB, free: 5.742 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.655e-05/0.002552, allocations: 26.5 kB / 240.4 MB, free: 5.719 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.00257, allocations: 0 / 240.4 MB, free: 5.719 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.701e-05/0.002617, allocations: 4 kB / 240.4 MB, free: 5.715 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.242e-05/0.00266, allocations: 11.94 kB / 240.4 MB, free: 5.703 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.176e-05/0.002681, allocations: 4 kB / 240.4 MB, free: 5.699 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.685e-05/0.002778, allocations: 27.84 kB / 240.5 MB, free: 5.672 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.256e-05/0.002791, allocations: 0 / 240.5 MB, free: 5.672 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.002792, allocations: 1.469 kB / 240.5 MB, free: 5.672 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.002802, allocations: 3.938 kB / 240.5 MB, free: 5.668 MB / 234.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.0003136/0.003116, allocations: 270.2 kB / 240.7 MB, free: 5.371 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.003148, allocations: 12.03 kB / 240.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.266e-05/0.003181, allocations: 5.75 kB / 240.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.853e-05/0.00328, allocations: 113.7 kB / 240.9 MB, free: 5.219 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.003293, allocations: 5.469 kB / 240.9 MB, free: 5.215 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.003303, allocations: 384 / 240.9 MB, free: 5.215 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.005e-05/0.003394, allocations: 70.77 kB / 240.9 MB, free: 5.133 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.003401, allocations: 7.312 kB / 241 MB, free: 5.129 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-06/0.00341, allocations: 4.375 kB / 241 MB, free: 5.125 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.003415, allocations: 384 / 241 MB, free: 5.125 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.825e-05/0.003444, allocations: 37.58 kB / 241 MB, free: 5.082 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.503e-05/0.003519, allocations: 63.83 kB / 241.1 MB, free: 5.004 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.335e-05/0.003572, allocations: 52.31 kB / 241.1 MB, free: 4.938 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.542e-05/0.003597, allocations: 38.59 kB / 241.1 MB, free: 4.891 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-06/0.003602, allocations: 4 kB / 241.1 MB, free: 4.887 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.00364, allocations: 61.58 kB / 241.2 MB, free: 4.812 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.003641, allocations: 4 kB / 241.2 MB, free: 4.809 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002346/0.003875, allocations: 134.7 kB / 241.3 MB, free: 4.652 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.003927, allocations: 163.3 kB / 241.5 MB, free: 4.457 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.618e-05/0.003993, allocations: 114.7 kB / 241.6 MB, free: 4.332 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.187e-06/0.004002, allocations: 25.7 kB / 241.6 MB, free: 4.301 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.899e-05/0.004021, allocations: 87.12 kB / 241.7 MB, free: 4.215 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.004043, allocations: 7.953 kB / 241.7 MB, free: 4.207 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.004071, allocations: 17.7 kB / 241.8 MB, free: 4.184 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.63e-05/0.004138, allocations: 322.8 kB / 242.1 MB, free: 3.859 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.043e-05/0.004158, allocations: 32.53 kB / 242.1 MB, free: 3.82 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.967e-05/0.004178, allocations: 37.69 kB / 242.1 MB, free: 3.777 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.601e-05/0.004224, allocations: 79.08 kB / 242.2 MB, free: 3.684 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.004225, allocations: 3.938 kB / 242.2 MB, free: 3.68 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.657e-05/0.004292, allocations: 102.1 kB / 242.3 MB, free: 3.562 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.057e-05/0.004333, allocations: 33.69 kB / 242.3 MB, free: 3.523 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.004338, allocations: 0.9062 kB / 242.3 MB, free: 3.523 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.004349, allocations: 4 kB / 242.4 MB, free: 3.52 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.683e-06/0.004351, allocations: 1.781 kB / 242.4 MB, free: 3.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.816e-06/0.004353, allocations: 3.938 kB / 242.4 MB, free: 3.516 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.004372, allocations: 0 / 242.4 MB, free: 3.516 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.004382, allocations: 4 kB / 242.4 MB, free: 3.512 MB / 234.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 6.809e-05/0.00445, allocations: 146.3 kB / 242.5 MB, free: 3.352 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-06/0.004457, allocations: 4.656 kB / 242.5 MB, free: 3.348 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.004477, allocations: 12 kB / 242.5 MB, free: 3.328 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.004479, allocations: 0.875 kB / 242.5 MB, free: 3.328 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.004482, allocations: 5.953 kB / 242.5 MB, free: 3.324 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.004485, allocations: 3.984 kB / 242.5 MB, free: 3.32 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.832e-05/0.004543, allocations: 69.83 kB / 242.6 MB, free: 3.234 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.004544, allocations: 0 / 242.6 MB, free: 3.234 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.302e-06/0.004546, allocations: 3.938 kB / 242.6 MB, free: 3.23 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.536e-06/0.004554, allocations: 11.89 kB / 242.6 MB, free: 3.219 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.004556, allocations: 1.719 kB / 242.6 MB, free: 3.219 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.479e-06/0.00456, allocations: 0 / 242.6 MB, free: 3.219 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.004562, allocations: 4 kB / 242.6 MB, free: 3.215 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.004563, allocations: 4 kB / 242.6 MB, free: 3.211 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.946e-05/0.004653, allocations: 146.7 kB / 242.8 MB, free: 3.035 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.004672, allocations: 0.5938 kB / 242.8 MB, free: 3.035 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.548e-06/0.004682, allocations: 4 kB / 242.8 MB, free: 3.031 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.167e-06/0.004691, allocations: 0.5312 kB / 242.8 MB, free: 3.031 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.004695, allocations: 5.688 kB / 242.8 MB, free: 3.027 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.527e-05/0.004711, allocations: 12.84 kB / 242.8 MB, free: 3.012 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004711, allocations: 0 / 242.8 MB, free: 3.012 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001009/0.004811, allocations: 12 kB / 242.8 MB, free: 3 MB / 234.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.0002482/0.00506, allocations: 117.6 kB / 242.9 MB, free: 2.902 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 9.727e-05/0.005157, allocations: 143.6 kB / 243.1 MB, free: 2.734 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.005161, allocations: 0 / 243.1 MB, free: 2.734 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 3.995e-05/0.005201, allocations: 110.1 kB / 243.2 MB, free: 2.605 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.332e-05/0.005265, allocations: 11.94 kB / 243.2 MB, free: 2.594 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001628/0.005427, allocations: 159.8 kB / 243.3 MB, free: 2.402 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.406e-05/0.005452, allocations: 59.34 kB / 243.4 MB, free: 2.324 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 5.019e-06/0.005457, allocations: 0 / 243.4 MB, free: 2.324 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.676e-05/0.005513, allocations: 67.34 kB / 243.5 MB, free: 2.258 MB / 234.7 MB Notification: Performance of SimCode: time 8.92e-07/0.005514, allocations: 0 / 243.5 MB, free: 2.258 MB / 234.7 MB Notification: Performance of Templates: time 0.001844/0.007358, allocations: 0.7616 MB / 244.2 MB, free: 1.512 MB / 234.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5344725660979748]