Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.000978/0.000978, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001039/0.001039, allocations: 168.3 kB / 25.33 MB, free: 9.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9366/0.9366, allocations: 158.6 MB / 187.2 MB, free: 2.562 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 251 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.189e-05/3.412e-05, allocations: 5.406 kB / 251 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001936/0.00197, allocations: 0.4945 MB / 251.5 MB, free: 3.137 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002832/0.002253, allocations: 59.73 kB / 251.6 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.923e-05/0.002292, allocations: 4 kB / 251.6 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.155e-05/0.002344, allocations: 0 / 251.6 MB, free: 3.074 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.131e-05/0.002435, allocations: 15.97 kB / 251.6 MB, free: 3.059 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.002642, allocations: 23.92 kB / 251.6 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001069/0.002748, allocations: 23.92 kB / 251.6 MB, free: 3.012 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4e-05/0.002788, allocations: 7.984 kB / 251.6 MB, free: 3.004 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.093e-05/0.002829, allocations: 15.98 kB / 251.7 MB, free: 2.988 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.0029, allocations: 23.97 kB / 251.7 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.002916, allocations: 0 / 251.7 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.17e-05/0.002958, allocations: 4 kB / 251.7 MB, free: 2.961 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.638e-05/0.003005, allocations: 11.92 kB / 251.7 MB, free: 2.949 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.00303, allocations: 4 kB / 251.7 MB, free: 2.945 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.003133, allocations: 27.91 kB / 251.7 MB, free: 2.918 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.003135, allocations: 0 / 251.7 MB, free: 2.918 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.003136, allocations: 0 / 251.7 MB, free: 2.918 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.003141, allocations: 7.938 kB / 251.7 MB, free: 2.91 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.0003208/0.003461, allocations: 394.3 kB / 252.1 MB, free: 2.48 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.003501, allocations: 11.98 kB / 252.1 MB, free: 2.469 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/0.003554, allocations: 8.891 kB / 252.1 MB, free: 2.461 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.169e-05/0.003635, allocations: 116.6 kB / 252.2 MB, free: 2.32 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.003647, allocations: 4.375 kB / 252.3 MB, free: 2.316 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.003656, allocations: 384 / 252.3 MB, free: 2.316 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.812e-05/0.003744, allocations: 71.89 kB / 252.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.003752, allocations: 192 / 252.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.00376, allocations: 384 / 252.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.003768, allocations: 384 / 252.3 MB, free: 2.234 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.146e-05/0.003789, allocations: 37.64 kB / 252.4 MB, free: 2.191 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.003892, allocations: 128.5 kB / 252.5 MB, free: 2.031 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.21e-05/0.003944, allocations: 60.77 kB / 252.5 MB, free: 1.953 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.479e-05/0.003968, allocations: 41.45 kB / 252.6 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-06/0.003973, allocations: 0 / 252.6 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.004008, allocations: 63.09 kB / 252.6 MB, free: 1.824 MB / 234.7 MB Notification: Performance of pre-optimization done (n=4): time 7.21e-07/0.004009, allocations: 0 / 252.6 MB, free: 1.824 MB / 234.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002005/0.00421, allocations: 162.7 kB / 252.8 MB, free: 1.641 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.004246, allocations: 77.11 kB / 252.9 MB, free: 1.547 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.525e-05/0.004331, allocations: 178 kB / 253.1 MB, free: 1.355 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.004341, allocations: 25.73 kB / 253.1 MB, free: 1.324 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.706e-05/0.004378, allocations: 130.9 kB / 253.2 MB, free: 1.191 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.004397, allocations: 11.95 kB / 253.2 MB, free: 1.18 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.004424, allocations: 23.36 kB / 253.2 MB, free: 1.148 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.004541, allocations: 0.4884 MB / 253.7 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.311e-05/0.004564, allocations: 29.7 kB / 253.8 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.049e-05/0.004585, allocations: 41.75 kB / 253.8 MB, free: 0.5664 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.007e-05/0.004635, allocations: 75.09 kB / 253.9 MB, free: 488 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.004637, allocations: 0 / 253.9 MB, free: 488 kB / 234.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.123e-05/0.004728, allocations: 117 kB / 254 MB, free: 352 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.004755, allocations: 37.7 kB / 254 MB, free: 308 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.00476, allocations: 4.062 kB / 254 MB, free: 304 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.004772, allocations: 0 / 254 MB, free: 304 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.556e-06/0.004775, allocations: 0 / 254 MB, free: 304 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.004782, allocations: 3.984 kB / 254 MB, free: 300 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.365e-05/0.004796, allocations: 7.938 kB / 254 MB, free: 292 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.004802, allocations: 0 / 254 MB, free: 292 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 7.458e-05/0.004876, allocations: 186.3 kB / 254.2 MB, free: 88 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.004886, allocations: 7.953 kB / 254.2 MB, free: 80 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.274e-05/0.004899, allocations: 7.984 kB / 254.2 MB, free: 68 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.004902, allocations: 4 kB / 254.2 MB, free: 64 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.004905, allocations: 4 kB / 254.2 MB, free: 60 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.004908, allocations: 8.062 kB / 254.3 MB, free: 52 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.379e-05/0.004982, allocations: 124.6 kB / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.004984, allocations: 3.984 kB / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.004984, allocations: 0 / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.004986, allocations: 0 / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.004994, allocations: 4 kB / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.004997, allocations: 4 kB / 254.4 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.004998, allocations: 0 / 254.4 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001207/0.005118, allocations: 179.7 kB / 254.6 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.37e-06/0.005124, allocations: 0 / 254.6 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.00514, allocations: 8.031 kB / 254.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-06/0.005146, allocations: 0 / 254.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/0.005158, allocations: 0 / 254.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.005163, allocations: 7.984 kB / 254.6 MB, free: 15.66 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.444e-05/0.005198, allocations: 131.2 kB / 254.7 MB, free: 15.53 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005198, allocations: 0 / 254.7 MB, free: 15.53 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000129/0.005327, allocations: 15.88 kB / 254.7 MB, free: 15.51 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.0002432/0.00557, allocations: 128.6 kB / 254.8 MB, free: 15.39 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001165/0.005687, allocations: 146.4 kB / 255 MB, free: 15.21 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.005689, allocations: 0 / 255 MB, free: 15.21 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.497e-05/0.005734, allocations: 104.8 kB / 255.1 MB, free: 15.09 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000105/0.005839, allocations: 7.984 kB / 255.1 MB, free: 15.08 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002131/0.006052, allocations: 151.9 kB / 255.3 MB, free: 14.9 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.122e-05/0.006083, allocations: 59.34 kB / 255.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.05e-06/0.006088, allocations: 0 / 255.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.235e-05/0.006101, allocations: 8.5 kB / 255.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of SimCode: time 4.81e-07/0.006101, allocations: 0 / 255.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of Templates: time 0.002402/0.008503, allocations: 0.7617 MB / 256.1 MB, free: 14.06 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7693905592896044]