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.001537/0.001537, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001849/0.001849, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 67.64 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001639/0.1054, allocations: 481.9 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002272/0.1056, allocations: 59.78 kB / 359.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.524e-05/0.1057, allocations: 0 / 359.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.787e-05/0.1057, allocations: 3.938 kB / 359.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.989e-05/0.1058, allocations: 15.97 kB / 359.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001467/0.1059, allocations: 15.98 kB / 359.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.683e-05/0.106, allocations: 23.97 kB / 359.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.13e-05/0.1061, allocations: 7.984 kB / 359.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.38e-05/0.1061, allocations: 15.88 kB / 359.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.995e-05/0.1062, allocations: 19.97 kB / 359.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.1062, allocations: 4 kB / 359.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.512e-05/0.1063, allocations: 15.98 kB / 359.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.447e-05/0.1063, allocations: 7.938 kB / 359.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.979e-05/0.1064, allocations: 7.938 kB / 359.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.162e-05/0.1065, allocations: 23.91 kB / 359.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1065, allocations: 0 / 359.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1065, allocations: 4 kB / 359.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.1065, allocations: 0 / 359.6 MB, free: 12.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.0003296/0.1068, allocations: 361.2 kB / 359.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.1069, allocations: 16.02 kB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.269e-05/0.1069, allocations: 8.844 kB / 360 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.107, allocations: 168.3 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.107, allocations: 384 / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.107, allocations: 4.375 kB / 360.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.1072, allocations: 58.23 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1072, allocations: 4.125 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.1072, allocations: 3.938 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1072, allocations: 3.938 kB / 360.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.708e-05/0.1072, allocations: 27.98 kB / 360.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.1074, allocations: 157.7 kB / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.349e-05/0.1075, allocations: 50.61 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.1075, allocations: 32.89 kB / 360.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.1075, allocations: 0 / 360.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.1076, allocations: 68.25 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.041e-06/0.1076, allocations: 0 / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.000269/0.1078, allocations: 191.1 kB / 360.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.1079, allocations: 85.14 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.162e-05/0.108, allocations: 109.8 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.108, allocations: 25.7 kB / 360.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.108, allocations: 84.14 kB / 361 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.1081, allocations: 7.906 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.1081, allocations: 17.7 kB / 361 MB, free: 10.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.1082, allocations: 318.8 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.152e-05/0.1083, allocations: 27.98 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.741e-05/0.1083, allocations: 27.98 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.19e-05/0.1084, allocations: 124.2 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1084, allocations: 0 / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001466/0.1085, allocations: 147.4 kB / 361.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.1086, allocations: 37.64 kB / 361.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1086, allocations: 3.938 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.1086, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-07/0.1086, allocations: 0 / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.1086, allocations: 7.969 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.154e-05/0.1087, allocations: 7.969 kB / 361.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1087, allocations: 4 kB / 361.7 MB, free: 10.23 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 8.722e-05/0.1088, allocations: 147.5 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.322e-05/0.1088, allocations: 7.984 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.606e-05/0.1088, allocations: 7.844 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.1088, allocations: 192 / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1088, allocations: 0 / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.1088, allocations: 7.984 kB / 361.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.899e-05/0.1089, allocations: 153.7 kB / 362 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1089, allocations: 0 / 362 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1089, allocations: 4 kB / 362 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1089, allocations: 4 kB / 362.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.109, allocations: 11.86 kB / 362.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.109, allocations: 0 / 362.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.109, allocations: 0 / 362.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001871/0.1092, allocations: 190.8 kB / 362.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.1092, allocations: 93.12 kB / 362.3 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.1092, allocations: 3.938 kB / 362.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.54e-05/0.1093, allocations: 12.03 kB / 362.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.534e-05/0.1093, allocations: 0 / 362.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.829e-05/0.1093, allocations: 4 kB / 362.4 MB, free: 9.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.45e-05/0.1094, allocations: 91.27 kB / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1094, allocations: 0 / 362.5 MB, free: 9.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001926/0.1096, allocations: 8 kB / 362.5 MB, free: 9.387 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.0002698/0.1098, allocations: 121.2 kB / 362.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.11, allocations: 135.3 kB / 362.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.11, allocations: 0 / 362.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.679e-05/0.1101, allocations: 95.39 kB / 362.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1102, allocations: 6.656 kB / 362.8 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002305/0.1105, allocations: 148.8 kB / 363 MB, free: 8.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.1107, allocations: 0.6808 MB / 363.6 MB, free: 8.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.73e-06/0.1107, allocations: 4 kB / 363.6 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.08e-05/0.1107, allocations: 7.438 kB / 363.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1107, allocations: 0 / 363.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of Templates: time 0.002563/0.1133, allocations: 0.6806 MB / 364.3 MB, free: 7.453 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 -s cvode -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