Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 67.62 kB / 307 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09724, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001549/0.09881, allocations: 482.8 kB / 358 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002205/0.09905, allocations: 55.8 kB / 358 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.961e-05/0.09909, allocations: 4 kB / 358 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.09913, allocations: 3.938 kB / 358 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.908e-05/0.0992, allocations: 15.98 kB / 358.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001349/0.09934, allocations: 19.97 kB / 358.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.599e-05/0.09943, allocations: 27.91 kB / 358.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.894e-05/0.09948, allocations: 4 kB / 358.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.809e-05/0.09951, allocations: 11.98 kB / 358.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.418e-05/0.09958, allocations: 27.91 kB / 358.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.0996, allocations: 0 / 358.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.895e-05/0.09964, allocations: 8 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.09969, allocations: 11.98 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.09972, allocations: 7.938 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.36e-05/0.09981, allocations: 27.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.09982, allocations: 4 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.09983, allocations: 0 / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.09983, allocations: 0 / 358.2 MB, free: 13.38 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.0003496/0.1002, allocations: 353.2 kB / 358.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.952e-05/0.1002, allocations: 8.031 kB / 358.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.878e-05/0.1003, allocations: 8.844 kB / 358.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1004, allocations: 176.6 kB / 358.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.1004, allocations: 8.312 kB / 358.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1004, allocations: 384 / 358.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.1005, allocations: 58.19 kB / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1005, allocations: 4.188 kB / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.1006, allocations: 3.938 kB / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1006, allocations: 0 / 358.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.702e-05/0.1006, allocations: 27.92 kB / 358.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.1008, allocations: 161.7 kB / 359 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.246e-05/0.1008, allocations: 50.61 kB / 359 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.347e-05/0.1009, allocations: 36.92 kB / 359.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.1009, allocations: 3.984 kB / 359.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.718e-05/0.101, allocations: 60.2 kB / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.101, allocations: 0 / 359.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002745/0.1013, allocations: 191.2 kB / 359.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.1013, allocations: 81.09 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.209e-05/0.1014, allocations: 113.9 kB / 359.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.1014, allocations: 25.7 kB / 359.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.1015, allocations: 88.14 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.1015, allocations: 3.906 kB / 359.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.33e-05/0.1016, allocations: 17.72 kB / 359.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1017, allocations: 318.8 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.409e-05/0.1017, allocations: 27.98 kB / 360 MB, free: 11.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.222e-05/0.1018, allocations: 20 kB / 360 MB, free: 11.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1019, allocations: 128.2 kB / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1019, allocations: 0 / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001613/0.102, allocations: 147.4 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.481e-05/0.1021, allocations: 37.69 kB / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1021, allocations: 3.938 kB / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1021, allocations: 0 / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1021, allocations: 0 / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.1021, allocations: 0 / 360.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.905e-05/0.1022, allocations: 7.906 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.1022, allocations: 0 / 360.3 MB, free: 10.98 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.0001057/0.1023, allocations: 155.6 kB / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.1023, allocations: 0 / 360.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.992e-05/0.1023, allocations: 11.84 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1023, allocations: 3.938 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.1023, allocations: 0 / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1023, allocations: 3.984 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.1025, allocations: 157.7 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1025, allocations: 0 / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1025, allocations: 3.938 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.1025, allocations: 0 / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1025, allocations: 11.94 kB / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1025, allocations: 256 / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1025, allocations: 0 / 360.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002052/0.1027, allocations: 190.8 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.1028, allocations: 88.95 kB / 360.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.1028, allocations: 11.88 kB / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.155e-05/0.1028, allocations: 0 / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.1028, allocations: 0 / 361 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.1028, allocations: 16.02 kB / 361 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.873e-05/0.1029, allocations: 83.28 kB / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1029, allocations: 0 / 361.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001888/0.1031, allocations: 12 kB / 361.1 MB, free: 10.13 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.0002954/0.1034, allocations: 130.9 kB / 361.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001708/0.1036, allocations: 135.3 kB / 361.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1036, allocations: 0 / 361.3 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.1037, allocations: 99.38 kB / 361.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1038, allocations: 4 kB / 361.4 MB, free: 9.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002506/0.1041, allocations: 136.9 kB / 361.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1044, allocations: 0.6807 MB / 362.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.579e-06/0.1044, allocations: 128 / 362.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.146e-05/0.1044, allocations: 11.44 kB / 362.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1044, allocations: 0 / 362.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of Templates: time 0.003162/0.1076, allocations: 0.6728 MB / 362.9 MB, free: 8.207 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches