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.000807/0.000807, allocations: 94.06 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.00102, allocations: 201.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002248/0.0002249, allocations: 4 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005793/0.1018, allocations: 201.2 kB / 360.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002924/0.1021, allocations: 65.12 kB / 360.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.001e-05/0.1022, allocations: 4 kB / 360.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.695e-05/0.1022, allocations: 0 / 360.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.158e-05/0.1023, allocations: 15.98 kB / 360.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000137/0.1024, allocations: 11.98 kB / 360.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.749e-05/0.1025, allocations: 23.92 kB / 360.2 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.519e-05/0.1025, allocations: 8 kB / 360.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.085e-05/0.1026, allocations: 7.984 kB / 360.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.172e-05/0.1027, allocations: 27.91 kB / 360.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.1027, allocations: 0 / 360.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.494e-05/0.1027, allocations: 11.98 kB / 360.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.1028, allocations: 4 kB / 360.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.425e-05/0.1028, allocations: 33.64 kB / 360.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.559e-05/0.1029, allocations: 15.97 kB / 360.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1029, allocations: 0 / 360.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1029, allocations: 0 / 360.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.103, allocations: 0 / 360.3 MB, free: 12.88 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.0003209/0.1033, allocations: 361.2 kB / 360.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1033, allocations: 15.97 kB / 360.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.174e-05/0.1034, allocations: 4.844 kB / 360.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.1035, allocations: 172.6 kB / 360.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.1035, allocations: 384 / 360.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.1036, allocations: 4.375 kB / 360.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001448/0.1037, allocations: 66.19 kB / 360.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.1037, allocations: 192 / 360.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.1037, allocations: 7.938 kB / 360.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1038, allocations: 0 / 360.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.91e-05/0.1038, allocations: 31.97 kB / 361 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001666/0.104, allocations: 153.7 kB / 361.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.783e-05/0.1041, allocations: 46.61 kB / 361.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.585e-05/0.1041, allocations: 36.92 kB / 361.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.1041, allocations: 0 / 361.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.111e-05/0.1042, allocations: 68.2 kB / 361.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.1042, allocations: 0 / 361.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002932/0.1045, allocations: 187.2 kB / 361.5 MB, free: 11.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.1046, allocations: 81.09 kB / 361.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.1047, allocations: 109.8 kB / 361.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.1047, allocations: 29.7 kB / 361.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.688e-05/0.1048, allocations: 80.14 kB / 361.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.1048, allocations: 11.91 kB / 361.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-05/0.1048, allocations: 9.719 kB / 361.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1049, allocations: 318.8 kB / 362.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.835e-05/0.105, allocations: 31.98 kB / 362.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.735e-05/0.105, allocations: 23.98 kB / 362.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.1051, allocations: 124.2 kB / 362.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1051, allocations: 0 / 362.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001915/0.1053, allocations: 151.4 kB / 362.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.1054, allocations: 33.69 kB / 362.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.1054, allocations: 7.938 kB / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.1054, allocations: 0 / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.1054, allocations: 4.062 kB / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.1054, allocations: 0 / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.102e-05/0.1055, allocations: 0 / 362.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.1055, allocations: 4 kB / 362.4 MB, free: 10.47 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.0001145/0.1056, allocations: 151.4 kB / 362.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.1056, allocations: 7.906 kB / 362.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.698e-05/0.1056, allocations: 11.84 kB / 362.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1057, allocations: 0 / 362.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1057, allocations: 0 / 362.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.1057, allocations: 0 / 362.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001171/0.1058, allocations: 161.7 kB / 362.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1058, allocations: 0 / 362.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.92e-07/0.1058, allocations: 3.938 kB / 362.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1058, allocations: 0 / 362.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1058, allocations: 11.94 kB / 362.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1058, allocations: 0 / 362.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1058, allocations: 0 / 362.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.1061, allocations: 195 kB / 363 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.1061, allocations: 92.98 kB / 363.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.1061, allocations: 7.938 kB / 363.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.395e-05/0.1062, allocations: 4 kB / 363.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.1062, allocations: 192 / 363.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.1062, allocations: 0 / 363.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.2e-05/0.1063, allocations: 95.27 kB / 363.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1063, allocations: 0 / 363.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001944/0.1065, allocations: 8 kB / 363.2 MB, free: 9.621 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.0003097/0.1068, allocations: 132.7 kB / 363.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.107, allocations: 127.3 kB / 363.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.107, allocations: 0 / 363.4 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.334e-05/0.107, allocations: 91.39 kB / 363.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.1072, allocations: 4 kB / 363.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002672/0.1075, allocations: 188.5 kB / 363.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.1077, allocations: 0.6809 MB / 364.4 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.133e-05/0.1077, allocations: 7.438 kB / 364.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1077, allocations: 0 / 364.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of Templates: time 0.002023/0.1098, allocations: 0.6696 MB / 365.1 MB, free: 7.656 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.0.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