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.001379/0.001379, allocations: 114.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001468, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.5 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 63.05 kB / 306.5 MB, free: 0.6953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09956/0.1014, allocations: 50.53 MB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001836/0.1033, allocations: 0.5362 MB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000294/0.1036, allocations: 63.72 kB / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.702e-05/0.1037, allocations: 0 / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.188e-05/0.1037, allocations: 0 / 357.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.424e-05/0.1038, allocations: 19.98 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.104, allocations: 23.91 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.1041, allocations: 23.97 kB / 357.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.696e-05/0.1042, allocations: 4 kB / 357.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.1042, allocations: 11.98 kB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.1043, allocations: 19.92 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.517e-05/0.1043, allocations: 4 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.615e-05/0.1044, allocations: 11.98 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.498e-05/0.1044, allocations: 4 kB / 357.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.434e-05/0.1045, allocations: 11.92 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.1046, allocations: 35.91 kB / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1046, allocations: 0 / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1046, allocations: 0 / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1046, allocations: 0 / 357.8 MB, free: 13.39 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.0004396/0.105, allocations: 359.8 kB / 358.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1051, allocations: 8.031 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.155e-05/0.1051, allocations: 8.844 kB / 358.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.1053, allocations: 164.6 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.1053, allocations: 384 / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1054, allocations: 8.375 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.1055, allocations: 62.17 kB / 358.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.1055, allocations: 4.125 kB / 358.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.1055, allocations: 3.938 kB / 358.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.1056, allocations: 4 kB / 358.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.785e-05/0.1056, allocations: 27.98 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.1058, allocations: 153.7 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.198e-05/0.1059, allocations: 42.56 kB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.449e-05/0.1059, allocations: 44.86 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.1059, allocations: 0 / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.897e-05/0.106, allocations: 64.27 kB / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.106, allocations: 0 / 358.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002937/0.1063, allocations: 187.2 kB / 358.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.1064, allocations: 81.11 kB / 359 MB, free: 11.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.517e-05/0.1065, allocations: 109.8 kB / 359.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1065, allocations: 25.7 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.1066, allocations: 92.16 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.1066, allocations: 7.906 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.1066, allocations: 17.72 kB / 359.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1068, allocations: 314.8 kB / 359.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.586e-05/0.1068, allocations: 31.86 kB / 359.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.204e-05/0.1069, allocations: 31.98 kB / 359.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.107, allocations: 116.2 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.107, allocations: 0 / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001738/0.1072, allocations: 151.6 kB / 359.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.174e-05/0.1072, allocations: 41.69 kB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1072, allocations: 3.938 kB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1073, allocations: 0 / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.836e-06/0.1073, allocations: 4 kB / 359.9 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1073, allocations: 3.984 kB / 359.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.418e-05/0.1073, allocations: 7.906 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.1073, allocations: 0 / 359.9 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.0001136/0.1074, allocations: 147.5 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.1075, allocations: 8.219 kB / 360.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.1075, allocations: 11.83 kB / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1075, allocations: 0 / 360.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1075, allocations: 4 kB / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1075, allocations: 0 / 360.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.1076, allocations: 161.6 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1076, allocations: 4 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1077, allocations: 0 / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1077, allocations: 0 / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1077, allocations: 3.938 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1077, allocations: 0 / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1077, allocations: 8 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002183/0.1079, allocations: 190.8 kB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.108, allocations: 84.95 kB / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.108, allocations: 7.938 kB / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.115e-05/0.108, allocations: 0 / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.108, allocations: 4 kB / 360.5 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.108, allocations: 4 kB / 360.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.636e-05/0.1081, allocations: 95.23 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1081, allocations: 0 / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001886/0.1083, allocations: 8 kB / 360.6 MB, free: 10.14 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.0003298/0.1087, allocations: 144.9 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001802/0.1088, allocations: 123.4 kB / 360.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1089, allocations: 4.062 kB / 360.9 MB, free: 9.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.979e-05/0.1089, allocations: 95.39 kB / 361 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000139/0.1091, allocations: 4 kB / 361 MB, free: 9.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.1094, allocations: 148.9 kB / 361.2 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.1098, allocations: 0.6807 MB / 361.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.56e-06/0.1098, allocations: 0 / 361.8 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.105e-05/0.1098, allocations: 7.438 kB / 361.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1098, allocations: 4.062 kB / 361.8 MB, free: 8.871 MB / 302.1 MB Notification: Performance of Templates: time 0.003063/0.1129, allocations: 0.6739 MB / 362.5 MB, free: 8.203 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