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.0007437/0.0007437, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009842/0.001728, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006448/0.0006448, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008462/0.001491, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.908/0.908, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08544/0.9934, allocations: 52.5 MB / 238.3 MB, free: 4.438 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.713e-06/1.713e-06, allocations: 0 / 239.5 MB, free: 3.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.51e-05/1.681e-05, allocations: 2.312 kB / 239.5 MB, free: 3.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001146/0.001163, allocations: 0.544 MB / 240.1 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 9.262e-05/0.001255, allocations: 59.73 kB / 240.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.856e-05/0.001274, allocations: 0 / 240.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.00129, allocations: 0 / 240.1 MB, free: 2.621 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.744e-05/0.001337, allocations: 23.95 kB / 240.1 MB, free: 2.598 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.501e-05/0.001402, allocations: 15.94 kB / 240.2 MB, free: 2.582 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.304e-05/0.001485, allocations: 23.91 kB / 240.2 MB, free: 2.559 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.174e-05/0.001517, allocations: 3.984 kB / 240.2 MB, free: 2.555 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.039e-05/0.001567, allocations: 19.98 kB / 240.2 MB, free: 2.535 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.143e-05/0.001629, allocations: 19.97 kB / 240.2 MB, free: 2.516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.001645, allocations: 4 kB / 240.2 MB, free: 2.512 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.048e-05/0.001686, allocations: 4 kB / 240.2 MB, free: 2.508 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.00172, allocations: 7.938 kB / 240.2 MB, free: 2.5 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.846e-05/0.001738, allocations: 4 kB / 240.2 MB, free: 2.496 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.156e-05/0.00183, allocations: 27.86 kB / 240.3 MB, free: 2.469 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.611e-05/0.001846, allocations: 0 / 240.3 MB, free: 2.469 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.001847, allocations: 4 kB / 240.3 MB, free: 2.465 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.469e-05/0.001861, allocations: 0 / 240.3 MB, free: 2.465 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.0005953/0.002457, allocations: 274.2 kB / 240.5 MB, free: 2.164 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.002492, allocations: 11.98 kB / 240.6 MB, free: 2.152 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.18e-05/0.002523, allocations: 8.938 kB / 240.6 MB, free: 2.145 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.73e-05/0.002611, allocations: 113.7 kB / 240.7 MB, free: 2.008 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.002623, allocations: 4.312 kB / 240.7 MB, free: 2.004 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-06/0.002631, allocations: 384 / 240.7 MB, free: 2.004 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.951e-05/0.00272, allocations: 78.77 kB / 240.8 MB, free: 1.914 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.002727, allocations: 192 / 240.8 MB, free: 1.914 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.002733, allocations: 384 / 240.8 MB, free: 1.914 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.002738, allocations: 384 / 240.8 MB, free: 1.914 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.349e-05/0.002761, allocations: 37.64 kB / 240.8 MB, free: 1.871 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.55e-05/0.002827, allocations: 59.83 kB / 240.9 MB, free: 1.797 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.744e-05/0.002874, allocations: 56.25 kB / 240.9 MB, free: 1.727 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.925e-05/0.002893, allocations: 42.59 kB / 240.9 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-06/0.002897, allocations: 0 / 240.9 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.002934, allocations: 64.3 kB / 241 MB, free: 1.598 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.002935, allocations: 0 / 241 MB, free: 1.598 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001318/0.003067, allocations: 134.8 kB / 241.1 MB, free: 1.441 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.0031, allocations: 85.09 kB / 241.2 MB, free: 1.34 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.74e-05/0.003157, allocations: 106.7 kB / 241.3 MB, free: 1.223 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.726e-06/0.003166, allocations: 29.7 kB / 241.4 MB, free: 1.188 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.838e-05/0.003184, allocations: 84.12 kB / 241.4 MB, free: 1.102 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.003203, allocations: 7.953 kB / 241.4 MB, free: 1.094 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.003228, allocations: 25.69 kB / 241.5 MB, free: 1.062 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.22e-05/0.0033, allocations: 326.7 kB / 241.8 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.995e-05/0.00332, allocations: 36.53 kB / 241.8 MB, free: 0.6914 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.398e-05/0.003334, allocations: 29.7 kB / 241.9 MB, free: 0.6562 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.505e-05/0.003379, allocations: 83.06 kB / 241.9 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.003381, allocations: 0 / 241.9 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.848e-05/0.003439, allocations: 97.09 kB / 242 MB, free: 456 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.003479, allocations: 37.69 kB / 242.1 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.003484, allocations: 0 / 242.1 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.472e-06/0.00349, allocations: 0 / 242.1 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.536e-06/0.003494, allocations: 0 / 242.1 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.003497, allocations: 8 kB / 242.1 MB, free: 404 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.383e-05/0.003511, allocations: 4.25 kB / 242.1 MB, free: 400 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.00352, allocations: 8 kB / 242.1 MB, free: 392 kB / 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 5.97e-05/0.003579, allocations: 150.3 kB / 242.2 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.433e-06/0.003586, allocations: 4 kB / 242.2 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.218e-05/0.003598, allocations: 4 kB / 242.2 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.51e-07/0.003599, allocations: 0 / 242.2 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.003601, allocations: 192 / 242.2 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.003603, allocations: 0 / 242.2 MB, free: 212 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.776e-05/0.00365, allocations: 81.8 kB / 242.3 MB, free: 112 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.003652, allocations: 0 / 242.3 MB, free: 112 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-07/0.003652, allocations: 4 kB / 242.3 MB, free: 108 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.613e-06/0.003658, allocations: 7.891 kB / 242.3 MB, free: 100 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.00366, allocations: 4 kB / 242.3 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-06/0.003665, allocations: 0 / 242.3 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.6e-07/0.003665, allocations: 0 / 242.3 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.003666, allocations: 0 / 242.3 MB, free: 96 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.197e-05/0.003758, allocations: 150.1 kB / 242.5 MB, free: 15.91 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.003772, allocations: 7.984 kB / 242.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-06/0.003779, allocations: 0 / 242.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-06/0.003786, allocations: 0 / 242.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.00379, allocations: 4 kB / 242.5 MB, free: 15.9 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.192e-05/0.003802, allocations: 12.89 kB / 242.5 MB, free: 15.88 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003802, allocations: 0 / 242.5 MB, free: 15.88 MB / 250.7 MB Notification: Performance of remove unused functions: time 9.343e-05/0.003895, allocations: 8 kB / 242.5 MB, free: 15.88 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.0002451/0.00414, allocations: 127 kB / 242.6 MB, free: 15.76 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.425e-05/0.004235, allocations: 139.6 kB / 242.8 MB, free: 15.6 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.004239, allocations: 8.062 kB / 242.8 MB, free: 15.59 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.12e-05/0.00427, allocations: 97.95 kB / 242.9 MB, free: 15.48 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.047e-05/0.00433, allocations: 15.92 kB / 242.9 MB, free: 15.46 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001767/0.004507, allocations: 163.7 kB / 243.1 MB, free: 15.27 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.709e-05/0.004534, allocations: 55.36 kB / 243.1 MB, free: 15.19 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.17e-06/0.004539, allocations: 0 / 243.1 MB, free: 15.19 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.944e-05/0.004599, allocations: 67.36 kB / 243.2 MB, free: 15.12 MB / 250.7 MB Notification: Performance of SimCode: time 7.61e-07/0.004599, allocations: 0 / 243.2 MB, free: 15.12 MB / 250.7 MB Notification: Performance of Templates: time 0.00209/0.006689, allocations: 0.7486 MB / 243.9 MB, free: 14.39 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.430506631731987]