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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00177/0.00177, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002079/0.002079, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.522/1.522, allocations: 227.7 MB / 247.7 MB, free: 10.36 MB / 206.1 MB 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.001956/0.001956, allocations: 63.66 kB / 307.9 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09909, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001719/0.1008, allocations: 462 kB / 358.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002599/0.1011, allocations: 61.19 kB / 358.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.83e-05/0.1012, allocations: 0 / 358.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.481e-05/0.1012, allocations: 0 / 358.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.415e-05/0.1013, allocations: 19.98 kB / 359 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.1014, allocations: 27.91 kB / 359 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.061e-05/0.1015, allocations: 15.98 kB / 359 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.224e-05/0.1016, allocations: 7.984 kB / 359 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.075e-05/0.1016, allocations: 15.92 kB / 359 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.074e-05/0.1017, allocations: 23.92 kB / 359 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.1017, allocations: 0 / 359 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.081e-05/0.1018, allocations: 8 kB / 359.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.513e-05/0.1018, allocations: 7.969 kB / 359.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.63e-05/0.1019, allocations: 11.94 kB / 359.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.89e-05/0.102, allocations: 23.92 kB / 359.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.102, allocations: 4 kB / 359.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.102, allocations: 0 / 359.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.102, allocations: 0 / 359.1 MB, free: 13.28 MB / 302.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.0004014/0.1024, allocations: 361.2 kB / 359.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1024, allocations: 8.031 kB / 359.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.595e-05/0.1025, allocations: 4.844 kB / 359.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.1027, allocations: 180.5 kB / 359.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.1027, allocations: 384 / 359.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.1027, allocations: 4.375 kB / 359.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001283/0.1028, allocations: 70.17 kB / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1028, allocations: 4.172 kB / 359.7 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1029, allocations: 3.938 kB / 359.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1029, allocations: 0 / 359.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.577e-05/0.1029, allocations: 27.98 kB / 359.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.1031, allocations: 153.7 kB / 359.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.303e-05/0.1032, allocations: 50.55 kB / 359.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.872e-05/0.1032, allocations: 36.92 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.1033, allocations: 4 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.456e-05/0.1033, allocations: 64.27 kB / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.1033, allocations: 0 / 360.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002976/0.1036, allocations: 183.2 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.1037, allocations: 81.05 kB / 360.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.1038, allocations: 117.8 kB / 360.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.1039, allocations: 29.69 kB / 360.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.517e-05/0.1039, allocations: 84.17 kB / 360.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.1039, allocations: 7.906 kB / 360.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.104, allocations: 17.72 kB / 360.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1041, allocations: 314.8 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.577e-05/0.1042, allocations: 28 kB / 360.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.064e-05/0.1042, allocations: 23.98 kB / 360.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.1043, allocations: 120.2 kB / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1043, allocations: 0 / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001791/0.1045, allocations: 155.3 kB / 361.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.631e-05/0.1046, allocations: 37.75 kB / 361.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1046, allocations: 7.938 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1046, allocations: 3.938 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1046, allocations: 0 / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1046, allocations: 0 / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.1047, allocations: 3.906 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.1047, allocations: 4 kB / 361.2 MB, free: 10.86 MB / 302.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.0001112/0.1048, allocations: 143.5 kB / 361.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.1048, allocations: 4 kB / 361.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/0.1048, allocations: 15.84 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-06/0.1048, allocations: 0 / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1049, allocations: 0 / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1049, allocations: 3.938 kB / 361.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.105, allocations: 161.9 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.105, allocations: 4 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.105, allocations: 0 / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.105, allocations: 0 / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.105, allocations: 7.938 kB / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.105, allocations: 0 / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.105, allocations: 0 / 361.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.1053, allocations: 202.9 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.059e-05/0.1053, allocations: 88.95 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.1054, allocations: 3.938 kB / 361.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.381e-05/0.1054, allocations: 4 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.086e-05/0.1054, allocations: 0 / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.1054, allocations: 0 / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.668e-05/0.1055, allocations: 95.27 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1055, allocations: 4.031 kB / 362 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001929/0.1057, allocations: 8 kB / 362 MB, free: 10.01 MB / 302.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.0003193/0.106, allocations: 133.5 kB / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.1062, allocations: 123.4 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1062, allocations: 0 / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.574e-05/0.1063, allocations: 103.4 kB / 362.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.1064, allocations: 4 kB / 362.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.1068, allocations: 170.5 kB / 362.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.1071, allocations: 0.6807 MB / 363.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.008e-05/0.1071, allocations: 7.438 kB / 363.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1071, allocations: 0 / 363.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of Templates: time 0.002296/0.1094, allocations: 0.6925 MB / 363.9 MB, free: 8.035 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (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) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches