Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001156/0.001156, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008918/0.0008919, allocations: 87.55 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.199/0.199, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/2.993e-05, allocations: 0 / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1146, allocations: 63.25 MB / 0.5114 GB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4285/0.5432, allocations: 86.64 MB / 0.596 GB, free: 7.277 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.5434, allocations: 65.72 kB / 0.596 GB, free: 7.246 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003445/0.5469, allocations: 1.43 MB / 0.5974 GB, free: 6.008 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5469, allocations: 0 / 0.5974 GB, free: 6.008 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.5469, allocations: 0 / 0.5974 GB, free: 6.008 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002935/0.5472, allocations: 343.6 kB / 0.5978 GB, free: 5.625 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.5473, allocations: 11.97 kB / 0.5978 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.5473, allocations: 0 / 0.5978 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.639e-05/0.5474, allocations: 163 kB / 0.5979 GB, free: 5.414 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.5474, allocations: 4 kB / 0.5979 GB, free: 5.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.5475, allocations: 4 kB / 0.5979 GB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.297e-05/0.5475, allocations: 29.69 kB / 0.598 GB, free: 5.371 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.5476, allocations: 3.938 kB / 0.598 GB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.5476, allocations: 0 / 0.598 GB, free: 5.367 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.5476, allocations: 4 kB / 0.598 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.582e-05/0.5476, allocations: 0 / 0.598 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.5477, allocations: 149 kB / 0.5981 GB, free: 5.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.041e-05/0.5478, allocations: 22.61 kB / 0.5981 GB, free: 5.141 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.492e-05/0.5478, allocations: 8.859 kB / 0.5981 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-06/0.5478, allocations: 0 / 0.5981 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.787e-05/0.5479, allocations: 60.25 kB / 0.5982 GB, free: 5.055 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 2.154e-06/0.5479, allocations: 4.062 kB / 0.5982 GB, free: 5.051 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001618/0.5481, allocations: 62.97 kB / 0.5983 GB, free: 4.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.5481, allocations: 79.84 kB / 0.5983 GB, free: 4.887 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.26e-05/0.5482, allocations: 89.03 kB / 0.5984 GB, free: 4.793 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.5482, allocations: 29.7 kB / 0.5984 GB, free: 4.758 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.749e-05/0.5482, allocations: 80.14 kB / 0.5985 GB, free: 4.676 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.5483, allocations: 0 / 0.5985 GB, free: 4.676 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.5483, allocations: 0 / 0.5985 GB, free: 4.676 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.5484, allocations: 314.8 kB / 0.5988 GB, free: 4.359 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.173e-05/0.5485, allocations: 0 / 0.5988 GB, free: 4.359 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.578e-06/0.5485, allocations: 4 kB / 0.5988 GB, free: 4.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.705e-05/0.5485, allocations: 29.77 kB / 0.5989 GB, free: 4.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5485, allocations: 0 / 0.5989 GB, free: 4.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.211e-05/0.5486, allocations: 70.8 kB / 0.5989 GB, free: 4.242 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.5487, allocations: 30.95 kB / 0.599 GB, free: 4.207 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.5487, allocations: 3.938 kB / 0.599 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.5487, allocations: 3.984 kB / 0.599 GB, free: 4.199 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.062e-06/0.5487, allocations: 4 kB / 0.599 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.5487, allocations: 0 / 0.599 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.075e-05/0.5487, allocations: 0 / 0.599 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.5488, allocations: 0 / 0.599 GB, free: 4.195 MB / 394.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: 1 (result) * Number of discrete 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 8.248e-05/0.5488, allocations: 136.1 kB / 0.5991 GB, free: 4.051 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-06/0.5489, allocations: 3.953 kB / 0.5991 GB, free: 4.047 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.41e-05/0.5489, allocations: 7.078 kB / 0.5991 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.5489, allocations: 0 / 0.5991 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5489, allocations: 0 / 0.5991 GB, free: 4.039 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.5489, allocations: 3.984 kB / 0.5991 GB, free: 4.035 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000116/0.549, allocations: 157.3 kB / 0.5993 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.549, allocations: 0 / 0.5993 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.549, allocations: 0 / 0.5993 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.549, allocations: 3.953 kB / 0.5993 GB, free: 3.832 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.5491, allocations: 4 kB / 0.5993 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.5491, allocations: 0 / 0.5993 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5491, allocations: 0 / 0.5993 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.5492, allocations: 94.14 kB / 0.5994 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.5492, allocations: 77.11 kB / 0.5994 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.5493, allocations: 7.953 kB / 0.5994 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-06/0.5493, allocations: 0 / 0.5994 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.5493, allocations: 4.031 kB / 0.5994 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.5493, allocations: 0 / 0.5994 GB, free: 3.609 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.478e-05/0.5493, allocations: 75.28 kB / 0.5995 GB, free: 3.535 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5493, allocations: 0 / 0.5995 GB, free: 3.535 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000186/0.5495, allocations: 31.22 kB / 0.5995 GB, free: 3.508 MB / 394.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: 1 (result) * Number of discrete states: 1 (result) * 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.0004609/0.55, allocations: 201.7 kB / 0.5997 GB, free: 3.336 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.293e-05/0.5501, allocations: 59.34 kB / 0.5998 GB, free: 3.266 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5501, allocations: 8.062 kB / 0.5998 GB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.971e-05/0.5502, allocations: 51.41 kB / 0.5998 GB, free: 3.195 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.42e-05/0.5503, allocations: 7.938 kB / 0.5999 GB, free: 3.188 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001558/0.5504, allocations: 45.98 kB / 0.5999 GB, free: 3.125 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.5507, allocations: 0.677 MB / 0.6006 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.351e-06/0.5507, allocations: 0 / 0.6006 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.498e-06/0.5507, allocations: 7.438 kB / 0.6006 GB, free: 2.414 MB / 394.7 MB Notification: Performance of SimCode: time 2.786e-06/0.5507, allocations: 0 / 0.6006 GB, free: 2.414 MB / 394.7 MB Notification: Performance of Templates: time 0.002533/0.5533, allocations: 0.5649 MB / 0.6011 GB, free: 1.855 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches