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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 205.4 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 245.4 MB, free: 6.434 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008208/0.000821, allocations: 91.38 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002045/0.0002046, allocations: 8 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2016, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0858/0.2875, allocations: 75.66 MB / 485 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001629/0.2877, allocations: 62 kB / 485.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001715/0.2894, allocations: 0.8326 MB / 485.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2894, allocations: 0 / 485.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.2894, allocations: 4.531 kB / 485.9 MB, free: 14.94 MB / 362.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.000296/0.2897, allocations: 365.7 kB / 486.3 MB, free: 14.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.2898, allocations: 8.75 kB / 486.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.2898, allocations: 4.938 kB / 486.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.882e-05/0.2899, allocations: 167 kB / 486.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.2899, allocations: 384 / 486.5 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.29, allocations: 4.375 kB / 486.5 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.2901, allocations: 78.2 kB / 486.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.2901, allocations: 192 / 486.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.561e-05/0.2901, allocations: 11.88 kB / 486.5 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2902, allocations: 2.469 kB / 486.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.855e-05/0.2902, allocations: 35.97 kB / 486.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.2904, allocations: 153.7 kB / 486.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.495e-05/0.2904, allocations: 61.98 kB / 486.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.059e-05/0.2905, allocations: 44.91 kB / 486.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.707e-06/0.2906, allocations: 4 kB / 486.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/0.2906, allocations: 60.25 kB / 486.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2906, allocations: 0 / 486.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003711/0.291, allocations: 247 kB / 487.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.291, allocations: 81.05 kB / 487.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.914e-05/0.2911, allocations: 113.8 kB / 487.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.2911, allocations: 25.7 kB / 487.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.57e-05/0.2912, allocations: 92.16 kB / 487.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.389e-05/0.2912, allocations: 11.83 kB / 487.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.2912, allocations: 4 kB / 487.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.718e-05/0.2913, allocations: 314.8 kB / 487.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.096e-05/0.2914, allocations: 35.97 kB / 487.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.657e-05/0.2914, allocations: 35.97 kB / 487.8 MB, free: 12.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.2916, allocations: 148.1 kB / 488 MB, free: 12.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2916, allocations: 0 / 488 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002453/0.2918, allocations: 187.3 kB / 488.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.2919, allocations: 37.77 kB / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2919, allocations: 3.938 kB / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2919, allocations: 0 / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.163e-06/0.2919, allocations: 0 / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2919, allocations: 0 / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.292, allocations: 4 kB / 488.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.292, allocations: 7.984 kB / 488.2 MB, free: 12.38 MB / 362.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.653e-05/0.2921, allocations: 147.5 kB / 488.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.2921, allocations: 0 / 488.4 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.864e-05/0.2921, allocations: 19.83 kB / 488.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2921, allocations: 0 / 488.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2922, allocations: 0 / 488.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2922, allocations: 256 / 488.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.2923, allocations: 161.7 kB / 488.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.2923, allocations: 4 kB / 488.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.193e-06/0.2923, allocations: 0 / 488.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2923, allocations: 0 / 488.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.2923, allocations: 7.938 kB / 488.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2923, allocations: 3.938 kB / 488.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2923, allocations: 0 / 488.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.2926, allocations: 238.6 kB / 488.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.141e-05/0.2927, allocations: 81.02 kB / 488.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.2927, allocations: 11.92 kB / 488.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.496e-05/0.2927, allocations: 0 / 488.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.2927, allocations: 7.938 kB / 488.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2928, allocations: 8 kB / 488.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.59e-05/0.2928, allocations: 87.27 kB / 489 MB, free: 11.5 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2928, allocations: 4.031 kB / 489 MB, free: 11.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001807/0.293, allocations: 12 kB / 489 MB, free: 11.48 MB / 362.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.000257/0.2933, allocations: 133.6 kB / 489.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.2934, allocations: 131.3 kB / 489.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2934, allocations: 0 / 489.3 MB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.624e-05/0.2935, allocations: 95.45 kB / 489.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.2937, allocations: 4 kB / 489.4 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002356/0.2939, allocations: 138.7 kB / 489.5 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.2942, allocations: 0.6809 MB / 490.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.899e-06/0.2942, allocations: 0 / 490.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.357e-06/0.2942, allocations: 7.438 kB / 490.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2942, allocations: 0 / 490.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of Templates: time 0.002568/0.2968, allocations: 0.644 MB / 490.8 MB, free: 9.598 MB / 362.7 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","../files/Modelica_trunk_Modelica.Utilities.Examples.WriteRealMatrixToFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches