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.001397/0.001397, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 59.31 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1034, allocations: 50.54 MB / 357.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001628/0.105, allocations: 0.5459 MB / 358.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002596/0.1053, allocations: 57.2 kB / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.237e-05/0.1054, allocations: 0 / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.589e-05/0.1054, allocations: 0 / 358.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.328e-05/0.1055, allocations: 15.98 kB / 358.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001378/0.1056, allocations: 23.91 kB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.429e-05/0.1057, allocations: 19.98 kB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.001e-05/0.1058, allocations: 0 / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.922e-05/0.1058, allocations: 11.98 kB / 358.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.263e-05/0.1059, allocations: 35.91 kB / 358.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.371e-05/0.1059, allocations: 0 / 358.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.757e-05/0.1059, allocations: 4 kB / 358.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.766e-05/0.106, allocations: 7.984 kB / 358.4 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.106, allocations: 7.938 kB / 358.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.824e-05/0.1061, allocations: 19.97 kB / 358.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1061, allocations: 0 / 358.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1061, allocations: 4 kB / 358.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1061, allocations: 0 / 358.4 MB, free: 13.66 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.0004162/0.1065, allocations: 363.8 kB / 358.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1066, allocations: 15.97 kB / 358.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.806e-05/0.1066, allocations: 8.844 kB / 358.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.1068, allocations: 164.6 kB / 359 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.1068, allocations: 384 / 359 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.485e-05/0.1068, allocations: 4.375 kB / 359 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.1069, allocations: 62.17 kB / 359 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.107, allocations: 192 / 359 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.107, allocations: 3.938 kB / 359 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.107, allocations: 0 / 359 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.556e-05/0.107, allocations: 27.98 kB / 359.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.1072, allocations: 157.7 kB / 359.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.361e-05/0.1073, allocations: 46.56 kB / 359.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.007e-05/0.1074, allocations: 36.92 kB / 359.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.1074, allocations: 3.938 kB / 359.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.313e-05/0.1074, allocations: 60.27 kB / 359.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.1074, allocations: 0 / 359.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003247/0.1078, allocations: 191.2 kB / 359.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.1078, allocations: 81.11 kB / 359.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.108, allocations: 109.8 kB / 359.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.108, allocations: 25.7 kB / 359.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.108, allocations: 88.12 kB / 359.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.1081, allocations: 11.84 kB / 359.8 MB, free: 12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-05/0.1081, allocations: 17.72 kB / 359.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1083, allocations: 314.8 kB / 360.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.758e-05/0.1083, allocations: 28.02 kB / 360.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.204e-05/0.1083, allocations: 31.92 kB / 360.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.1085, allocations: 120.2 kB / 360.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1085, allocations: 0 / 360.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001787/0.1087, allocations: 147.5 kB / 360.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.1087, allocations: 37.69 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.1087, allocations: 3.938 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1087, allocations: 0 / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.296e-06/0.1087, allocations: 3.984 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1087, allocations: 0 / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.35e-05/0.1088, allocations: 7.969 kB / 360.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.1088, allocations: 8 kB / 360.6 MB, free: 11.25 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.0001206/0.1089, allocations: 147.5 kB / 360.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.1089, allocations: 7.938 kB / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.705e-05/0.109, allocations: 7.844 kB / 360.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.109, allocations: 256 / 360.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.109, allocations: 0 / 360.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.109, allocations: 8 kB / 360.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001381/0.1091, allocations: 161.6 kB / 360.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1091, allocations: 4 kB / 360.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1091, allocations: 0 / 360.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1092, allocations: 4 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.1092, allocations: 3.938 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1092, allocations: 0 / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1092, allocations: 0 / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.1094, allocations: 198.8 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.268e-05/0.1095, allocations: 84.95 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.1095, allocations: 3.938 kB / 361.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.408e-05/0.1095, allocations: 8.031 kB / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.1096, allocations: 0 / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1096, allocations: 8 kB / 361.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.92e-05/0.1096, allocations: 87.27 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1096, allocations: 3.938 kB / 361.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001887/0.1098, allocations: 8 kB / 361.3 MB, free: 10.4 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.000349/0.1102, allocations: 135.9 kB / 361.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001864/0.1104, allocations: 123.4 kB / 361.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1104, allocations: 0 / 361.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.136e-05/0.1105, allocations: 95.39 kB / 361.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.1106, allocations: 11.48 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003043/0.111, allocations: 174.7 kB / 361.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.1113, allocations: 0.6807 MB / 362.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.1113, allocations: 7.438 kB / 362.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1113, allocations: 0 / 362.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Templates: time 0.00248/0.1138, allocations: 0.6818 MB / 363.2 MB, free: 8.43 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/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_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches