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.001586/0.001586, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.001953/0.001953, allocations: 210.7 kB / 24.48 MB, free: 3.977 MB / 14.72 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 2.096/2.096, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002148/0.002148, allocations: 51.92 kB / 378.9 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4013, allocations: 53.37 MB / 432.3 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002022/0.4033, allocations: 492.1 kB / 432.8 MB, free: 6.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003117/0.4036, allocations: 67.03 kB / 432.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.26e-05/0.4037, allocations: 0 / 432.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.38e-05/0.4037, allocations: 3.938 kB / 432.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.817e-05/0.4038, allocations: 15.97 kB / 432.9 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.404, allocations: 15.98 kB / 432.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.4041, allocations: 27.92 kB / 432.9 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.453e-05/0.4041, allocations: 3.938 kB / 432.9 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.999e-05/0.4041, allocations: 19.91 kB / 432.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.842e-05/0.4042, allocations: 23.97 kB / 433 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.4042, allocations: 0 / 433 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.391e-05/0.4043, allocations: 4 kB / 433 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.4043, allocations: 7.984 kB / 433 MB, free: 6.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.627e-05/0.4044, allocations: 15.92 kB / 433 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001078/0.4045, allocations: 22.88 kB / 433 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.4045, allocations: 0 / 433 MB, free: 6.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4045, allocations: 4 kB / 433 MB, free: 6.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.4045, allocations: 0 / 433 MB, free: 6.07 MB / 334.1 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.0004016/0.4049, allocations: 287.7 kB / 433.3 MB, free: 5.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.4049, allocations: 8.031 kB / 433.3 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.212e-05/0.405, allocations: 8.891 kB / 433.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.4051, allocations: 110.5 kB / 433.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.4051, allocations: 4.375 kB / 433.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.4051, allocations: 384 / 433.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001715/0.4053, allocations: 95.88 kB / 433.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.4053, allocations: 4.125 kB / 433.5 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.4053, allocations: 7.938 kB / 433.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.4053, allocations: 0 / 433.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.321e-05/0.4054, allocations: 57.69 kB / 433.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001582/0.4056, allocations: 105.4 kB / 433.7 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/0.4057, allocations: 68.27 kB / 433.7 MB, free: 5.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.051e-05/0.4058, allocations: 62.62 kB / 433.8 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.4058, allocations: 4 kB / 433.8 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.414e-05/0.4058, allocations: 60.2 kB / 433.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.4058, allocations: 0 / 433.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004263/0.4062, allocations: 250.6 kB / 434.1 MB, free: 4.789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.566e-05/0.4063, allocations: 81.11 kB / 434.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.4064, allocations: 117.9 kB / 434.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.4065, allocations: 25.7 kB / 434.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.4065, allocations: 80.14 kB / 434.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.4065, allocations: 11.95 kB / 434.4 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.4066, allocations: 17.7 kB / 434.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4068, allocations: 318.8 kB / 434.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.419e-05/0.4069, allocations: 53.69 kB / 434.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.109e-05/0.4069, allocations: 57.69 kB / 434.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.4071, allocations: 120.2 kB / 435 MB, free: 3.844 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.4071, allocations: 0 / 435 MB, free: 3.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002774/0.4074, allocations: 185.1 kB / 435.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.4074, allocations: 37.64 kB / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4074, allocations: 0 / 435.2 MB, free: 3.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.4074, allocations: 4.125 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.4074, allocations: 0 / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.4074, allocations: 0 / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.925e-05/0.4075, allocations: 7.953 kB / 435.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.4075, allocations: 3.984 kB / 435.2 MB, free: 3.586 MB / 334.1 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.0001413/0.4076, allocations: 155.5 kB / 435.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.4076, allocations: 0 / 435.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.278e-05/0.4077, allocations: 11.98 kB / 435.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.4077, allocations: 7.969 kB / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.4077, allocations: 0 / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.4077, allocations: 0 / 435.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.4078, allocations: 117.2 kB / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.4078, allocations: 0 / 435.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.4078, allocations: 3.938 kB / 435.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4078, allocations: 0 / 435.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.4078, allocations: 4 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.4078, allocations: 0 / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.4078, allocations: 3.938 kB / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.4081, allocations: 224.4 kB / 435.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.284e-06/0.4081, allocations: 4.031 kB / 435.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.4082, allocations: 4 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.283e-05/0.4082, allocations: 4.25 kB / 435.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.4082, allocations: 3.938 kB / 435.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.4082, allocations: 8 kB / 435.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.17e-05/0.4083, allocations: 87.27 kB / 435.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4083, allocations: 0 / 435.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.4086, allocations: 8 kB / 435.8 MB, free: 2.867 MB / 334.1 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.0003738/0.409, allocations: 136.2 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002631/0.4093, allocations: 186.7 kB / 436.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4093, allocations: 0 / 436.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.4094, allocations: 113.1 kB / 436.3 MB, free: 2.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.4096, allocations: 11.94 kB / 436.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003504/0.41, allocations: 166.6 kB / 436.4 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.32e-05/0.41, allocations: 63.34 kB / 436.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.861e-06/0.41, allocations: 8.125 kB / 436.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.448e-05/0.4101, allocations: 7.438 kB / 436.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4101, allocations: 0 / 436.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of Templates: time 0.004038/0.4141, allocations: 0.7319 MB / 437.3 MB, free: 1.379 MB / 334.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.684636820005835]