Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001523/0.001524, allocations: 180.1 kB / 18.04 MB, free: 3.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.4 MB / 224.2 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007674/0.0007674, allocations: 85.73 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.219/0.2193, allocations: 47.58 MB / 377 MB, free: 45.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08182/0.3012, allocations: 74.11 MB / 451.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.3014, allocations: 63.97 kB / 451.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001741/0.3032, allocations: 0.8264 MB / 452 MB, free: 5.555 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3032, allocations: 0 / 452 MB, free: 5.555 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3032, allocations: 0 / 452 MB, free: 5.555 MB / 330.7 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.0002696/0.3035, allocations: 365.2 kB / 452.4 MB, free: 5.141 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.3035, allocations: 12.02 kB / 452.4 MB, free: 5.129 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.3036, allocations: 12.78 kB / 452.4 MB, free: 5.117 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.3037, allocations: 160.4 kB / 452.5 MB, free: 4.922 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.3037, allocations: 4.375 kB / 452.5 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.336e-05/0.3037, allocations: 384 / 452.5 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001392/0.3038, allocations: 82.14 kB / 452.6 MB, free: 4.832 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.811e-06/0.3039, allocations: 192 / 452.6 MB, free: 4.832 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3039, allocations: 3.938 kB / 452.6 MB, free: 4.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.3039, allocations: 0 / 452.6 MB, free: 4.828 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.601e-05/0.304, allocations: 43.97 kB / 452.7 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.3041, allocations: 157.7 kB / 452.8 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.295e-05/0.3042, allocations: 50.59 kB / 452.9 MB, free: 4.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.87e-05/0.3042, allocations: 56.66 kB / 452.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.3042, allocations: 0 / 452.9 MB, free: 4.469 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.3043, allocations: 64.19 kB / 453 MB, free: 4.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.3043, allocations: 4 kB / 453 MB, free: 4.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003565/0.3047, allocations: 243.1 kB / 453.2 MB, free: 4.137 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.3047, allocations: 77.11 kB / 453.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.908e-05/0.3048, allocations: 113.8 kB / 453.4 MB, free: 3.922 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.3048, allocations: 29.7 kB / 453.5 MB, free: 3.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.3049, allocations: 84.14 kB / 453.5 MB, free: 3.801 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.102e-05/0.3049, allocations: 11.89 kB / 453.5 MB, free: 3.789 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.3049, allocations: 0 / 453.5 MB, free: 3.789 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.989e-05/0.305, allocations: 314.8 kB / 453.9 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.286e-05/0.3051, allocations: 40 kB / 453.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.708e-05/0.3051, allocations: 39.97 kB / 453.9 MB, free: 3.395 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.3052, allocations: 140.1 kB / 454.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3052, allocations: 0 / 454.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002188/0.3055, allocations: 195.3 kB / 454.3 MB, free: 3.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.3055, allocations: 29.7 kB / 454.3 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3055, allocations: 3.938 kB / 454.3 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3055, allocations: 0 / 454.3 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.3055, allocations: 4 kB / 454.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.3056, allocations: 64 / 454.3 MB, free: 2.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.758e-05/0.3056, allocations: 4 kB / 454.3 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.3056, allocations: 12.17 kB / 454.3 MB, free: 2.98 MB / 330.7 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 (success1,success2,success3,success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.061e-05/0.3057, allocations: 143.5 kB / 454.5 MB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.3057, allocations: 11.84 kB / 454.5 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.611e-05/0.3058, allocations: 15.81 kB / 454.5 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.3058, allocations: 0 / 454.5 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.3058, allocations: 0 / 454.5 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.3058, allocations: 3.938 kB / 454.5 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.572e-05/0.3059, allocations: 161.7 kB / 454.6 MB, free: 2.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3059, allocations: 4 kB / 454.6 MB, free: 2.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.3059, allocations: 0 / 454.6 MB, free: 2.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3059, allocations: 4 kB / 454.7 MB, free: 2.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.3059, allocations: 3.938 kB / 454.7 MB, free: 2.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.3059, allocations: 4 kB / 454.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3059, allocations: 0 / 454.7 MB, free: 2.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002671/0.3062, allocations: 226.7 kB / 454.9 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.3063, allocations: 85.02 kB / 455 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.3063, allocations: 11.95 kB / 455 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.486e-05/0.3063, allocations: 4 kB / 455 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.51e-05/0.3063, allocations: 0 / 455 MB, free: 2.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.3064, allocations: 15.94 kB / 455 MB, free: 2.191 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.937e-05/0.3064, allocations: 91.52 kB / 455.1 MB, free: 2.102 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3064, allocations: 0 / 455.1 MB, free: 2.102 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001802/0.3066, allocations: 8 kB / 455.1 MB, free: 2.094 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002343/0.3068, allocations: 132.4 kB / 455.2 MB, free: 1.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.307, allocations: 131.4 kB / 455.3 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.307, allocations: 0 / 455.3 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.855e-05/0.3071, allocations: 95.39 kB / 455.4 MB, free: 1.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000129/0.3072, allocations: 4 kB / 455.4 MB, free: 1.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002227/0.3074, allocations: 146.8 kB / 455.6 MB, free: 1.547 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/0.3077, allocations: 0.6809 MB / 456.3 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.839e-06/0.3077, allocations: 0 / 456.3 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.115e-06/0.3077, allocations: 7.438 kB / 456.3 MB, free: 0.832 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3077, allocations: 0 / 456.3 MB, free: 0.832 MB / 330.7 MB Notification: Performance of Templates: time 0.002377/0.3101, allocations: 0.6298 MB / 456.9 MB, free: 212 kB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/WriteRealMatrixToFile/WriteRealMatrixToFile.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches