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.001639/0.001639, allocations: 113 kB / 18.45 MB, free: 4.602 MB / 14.72 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.001912/0.001912, allocations: 190.9 kB / 21.4 MB, free: 1.664 MB / 14.72 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 1.534/1.534, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001511/0.001511, allocations: 51.92 kB / 366.8 MB, free: 380 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 52.14 MB / 418.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001621/0.1073, allocations: 490.5 kB / 419.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002658/0.1075, allocations: 59.8 kB / 419.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.028e-05/0.1076, allocations: 0 / 419.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.243e-05/0.1076, allocations: 0 / 419.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.923e-05/0.1077, allocations: 23.91 kB / 419.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.1078, allocations: 15.98 kB / 419.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.1079, allocations: 15.98 kB / 419.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.108, allocations: 7.938 kB / 419.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.833e-05/0.108, allocations: 15.97 kB / 419.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.081e-05/0.1081, allocations: 31.91 kB / 419.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.719e-05/0.1081, allocations: 0 / 419.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.941e-05/0.1082, allocations: 8 kB / 419.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.1082, allocations: 7.922 kB / 419.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.441e-05/0.1082, allocations: 15.92 kB / 419.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.1083, allocations: 19.92 kB / 419.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.1084, allocations: 0 / 419.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1084, allocations: 4 kB / 419.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1084, allocations: 0 / 419.6 MB, free: 11.43 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.000407/0.1088, allocations: 369 kB / 420 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.1088, allocations: 12.03 kB / 420 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.192e-05/0.1088, allocations: 4.938 kB / 420 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.109, allocations: 168.3 kB / 420.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.035e-06/0.109, allocations: 384 / 420.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.109, allocations: 4.375 kB / 420.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.1091, allocations: 66.17 kB / 420.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1091, allocations: 192 / 420.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.331e-05/0.1091, allocations: 7.875 kB / 420.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1091, allocations: 0 / 420.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.625e-05/0.1092, allocations: 31.98 kB / 420.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.1094, allocations: 153.7 kB / 420.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.797e-05/0.1094, allocations: 42.56 kB / 420.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.1095, allocations: 32.92 kB / 420.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.1095, allocations: 4 kB / 420.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.1095, allocations: 56.27 kB / 420.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.1095, allocations: 0 / 420.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003114/0.1098, allocations: 195.2 kB / 420.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.1099, allocations: 77.11 kB / 420.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.11, allocations: 109.8 kB / 420.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.11, allocations: 25.7 kB / 421 MB, free: 9.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.1101, allocations: 92.12 kB / 421 MB, free: 9.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.1101, allocations: 11.84 kB / 421.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.1101, allocations: 17.72 kB / 421.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1103, allocations: 318.8 kB / 421.4 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.712e-05/0.1103, allocations: 32.02 kB / 421.4 MB, free: 9.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.006e-05/0.1103, allocations: 24.12 kB / 421.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001187/0.1104, allocations: 128.2 kB / 421.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1104, allocations: 0 / 421.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001647/0.1106, allocations: 147.4 kB / 421.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.044e-05/0.1106, allocations: 37.69 kB / 421.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1107, allocations: 3.938 kB / 421.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.1107, allocations: 0 / 421.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.021e-06/0.1107, allocations: 0 / 421.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1107, allocations: 0 / 421.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.9e-05/0.1107, allocations: 8.062 kB / 421.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.1107, allocations: 4 kB / 421.8 MB, free: 9.02 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.0001077/0.1108, allocations: 147.8 kB / 421.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.1108, allocations: 7.953 kB / 421.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.805e-05/0.1108, allocations: 11.84 kB / 421.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.1108, allocations: 0 / 421.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1108, allocations: 0 / 421.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.1108, allocations: 0 / 421.9 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.111, allocations: 161.7 kB / 422.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.111, allocations: 4 kB / 422.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.111, allocations: 0 / 422.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.111, allocations: 0 / 422.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.111, allocations: 7.938 kB / 422.1 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.111, allocations: 7.875 kB / 422.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.111, allocations: 0 / 422.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.1112, allocations: 192.7 kB / 422.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.205e-05/0.1113, allocations: 85.06 kB / 422.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.1113, allocations: 7.969 kB / 422.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.195e-05/0.1113, allocations: 0 / 422.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.767e-05/0.1113, allocations: 8 kB / 422.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.1113, allocations: 0 / 422.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.172e-05/0.1114, allocations: 87.27 kB / 422.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1114, allocations: 0 / 422.5 MB, free: 8.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001899/0.1116, allocations: 12 kB / 422.5 MB, free: 8.18 MB / 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.0003362/0.1119, allocations: 152.2 kB / 422.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002338/0.1122, allocations: 119.3 kB / 422.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1122, allocations: 0 / 422.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.1123, allocations: 87.39 kB / 422.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.1125, allocations: 4 kB / 422.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/0.1129, allocations: 170.7 kB / 423 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.1133, allocations: 0.6885 MB / 423.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.469e-05/0.1133, allocations: 7.438 kB / 423.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1133, allocations: 0 / 423.7 MB, free: 6.883 MB / 350.1 MB Notification: Performance of Templates: time 0.003103/0.1164, allocations: 0.675 MB / 424.4 MB, free: 6.215 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.05792403081432]