Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001449/0.001449, allocations: 111.9 kB / 19.18 MB, free: 3.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 208.9 kB / 22.13 MB, free: 0.8125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 230.4 MB / 255.4 MB, free: 15.01 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 71.81 kB / 374.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09778/0.09966, allocations: 53.31 MB / 428 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001659/0.1013, allocations: 488.6 kB / 428.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002718/0.1016, allocations: 59.8 kB / 428.6 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.148e-05/0.1016, allocations: 3.938 kB / 428.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.562e-05/0.1017, allocations: 7.938 kB / 428.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.804e-05/0.1017, allocations: 19.97 kB / 428.6 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001523/0.1019, allocations: 19.92 kB / 428.6 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.487e-05/0.102, allocations: 19.92 kB / 428.6 MB, free: 3.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.548e-05/0.102, allocations: 7.984 kB / 428.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.452e-05/0.1021, allocations: 19.98 kB / 428.7 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.437e-05/0.1021, allocations: 23.97 kB / 428.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.1021, allocations: 0 / 428.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.126e-05/0.1022, allocations: 7.938 kB / 428.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.116e-05/0.1022, allocations: 11.97 kB / 428.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.227e-05/0.1023, allocations: 11.94 kB / 428.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.1024, allocations: 19.92 kB / 428.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1024, allocations: 0 / 428.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1024, allocations: 0 / 428.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1024, allocations: 0 / 428.7 MB, free: 3.672 MB / 350.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.0004106/0.1028, allocations: 369 kB / 429.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.1028, allocations: 8.031 kB / 429.1 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.1029, allocations: 8.891 kB / 429.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.1031, allocations: 164.4 kB / 429.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1031, allocations: 4.375 kB / 429.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.095e-06/0.1031, allocations: 384 / 429.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.1032, allocations: 66.17 kB / 429.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1032, allocations: 192 / 429.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.1032, allocations: 7.938 kB / 429.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.1033, allocations: 4 kB / 429.3 MB, free: 2.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.121e-05/0.1033, allocations: 23.98 kB / 429.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1035, allocations: 157.7 kB / 429.5 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.689e-05/0.1035, allocations: 38.61 kB / 429.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.827e-05/0.1036, allocations: 36.92 kB / 429.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.1036, allocations: 7.922 kB / 429.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/0.1036, allocations: 56.27 kB / 429.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.1036, allocations: 4 kB / 429.7 MB, free: 2.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003475/0.104, allocations: 191.2 kB / 429.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.702e-05/0.104, allocations: 81.05 kB / 429.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.1041, allocations: 113.8 kB / 430 MB, free: 2.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1042, allocations: 29.7 kB / 430.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.454e-05/0.1042, allocations: 88.12 kB / 430.2 MB, free: 2.016 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.1042, allocations: 7.891 kB / 430.2 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.1043, allocations: 17.72 kB / 430.2 MB, free: 1.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1044, allocations: 322.9 kB / 430.5 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.661e-05/0.1045, allocations: 24 kB / 430.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.058e-05/0.1045, allocations: 31.86 kB / 430.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.1046, allocations: 120.2 kB / 430.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1046, allocations: 0 / 430.7 MB, free: 1.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000173/0.1048, allocations: 151.4 kB / 430.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.503e-05/0.1048, allocations: 33.69 kB / 430.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1048, allocations: 3.938 kB / 430.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.1048, allocations: 4 kB / 430.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.1048, allocations: 4.062 kB / 430.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.1048, allocations: 0 / 430.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.771e-05/0.1049, allocations: 3.953 kB / 430.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.1049, allocations: 4 kB / 430.9 MB, free: 1.254 MB / 350.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.000104/0.105, allocations: 147.5 kB / 431 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.105, allocations: 7.938 kB / 431 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.105, allocations: 7.844 kB / 431 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.105, allocations: 0 / 431 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.105, allocations: 0 / 431 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.105, allocations: 0 / 431 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.1051, allocations: 165.7 kB / 431.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.1051, allocations: 0 / 431.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.1051, allocations: 0 / 431.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.1052, allocations: 0 / 431.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1052, allocations: 7.938 kB / 431.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1052, allocations: 0 / 431.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1052, allocations: 0 / 431.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002174/0.1054, allocations: 198.7 kB / 431.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.1054, allocations: 81.14 kB / 431.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.1055, allocations: 4.188 kB / 431.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.404e-05/0.1055, allocations: 4 kB / 431.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.319e-05/0.1055, allocations: 7.938 kB / 431.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.1055, allocations: 8 kB / 431.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.234e-05/0.1055, allocations: 87.27 kB / 431.6 MB, free: 432 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1055, allocations: 3.938 kB / 431.6 MB, free: 428 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.00019/0.1057, allocations: 8 kB / 431.6 MB, free: 420 kB / 350.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.0003177/0.1061, allocations: 146.5 kB / 431.7 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001567/0.1062, allocations: 115.4 kB / 431.8 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1062, allocations: 0 / 431.8 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.095e-05/0.1063, allocations: 91.38 kB / 431.9 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.1064, allocations: 6.062 kB / 431.9 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003086/0.1067, allocations: 170.9 kB / 432.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003244/0.1071, allocations: 0.6768 MB / 432.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.076e-05/0.1071, allocations: 7.438 kB / 432.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1071, allocations: 0 / 432.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of Templates: time 0.002192/0.1093, allocations: 0.6853 MB / 433.5 MB, free: 14.45 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.595188298961148]