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.001153/0.001153, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008574/0.0008573, allocations: 105.3 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2975/0.2975, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002605, allocations: 11.98 kB / 468.4 MB, free: 7.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3321, allocations: 63.24 MB / 0.5192 GB, free: 43.56 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.4475, allocations: 86.71 MB / 0.6038 GB, free: 2.969 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4477, allocations: 65 kB / 0.6039 GB, free: 2.906 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003767/0.4515, allocations: 1.443 MB / 0.6053 GB, free: 1.465 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4516, allocations: 0.75 kB / 0.6053 GB, free: 1.465 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.4516, allocations: 0 / 0.6053 GB, free: 1.465 MB / 410.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.0003157/0.4519, allocations: 350.1 kB / 0.6057 GB, free: 1.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.452, allocations: 8.031 kB / 0.6057 GB, free: 1.062 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.452, allocations: 4.406 kB / 0.6057 GB, free: 1.059 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.4521, allocations: 163.8 kB / 0.6058 GB, free: 0.8594 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.4521, allocations: 3.984 kB / 0.6058 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.4522, allocations: 5.812 kB / 0.6058 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.4523, allocations: 25.7 kB / 0.6059 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.4523, allocations: 0 / 0.6059 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.4523, allocations: 0 / 0.6059 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.4523, allocations: 5.719 kB / 0.6059 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.459e-05/0.4523, allocations: 7.938 kB / 0.6059 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.4525, allocations: 149.6 kB / 0.606 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.059e-05/0.4525, allocations: 27.08 kB / 0.606 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.265e-06/0.4526, allocations: 0.75 kB / 0.606 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.4526, allocations: 56.98 kB / 0.6061 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4526, allocations: 4.688 kB / 0.6061 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001953/0.4528, allocations: 69.47 kB / 0.6062 GB, free: 436 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.4529, allocations: 77.11 kB / 0.6062 GB, free: 340 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.452e-05/0.4529, allocations: 88.98 kB / 0.6063 GB, free: 244 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.4529, allocations: 25.7 kB / 0.6063 GB, free: 212 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.737e-05/0.453, allocations: 80.14 kB / 0.6064 GB, free: 128 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.453, allocations: 4.719 kB / 0.6064 GB, free: 124 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.453, allocations: 0 / 0.6064 GB, free: 124 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.4531, allocations: 311.6 kB / 0.6067 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-06/0.4532, allocations: 0.8438 kB / 0.6067 GB, free: 15.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.082e-06/0.4532, allocations: 0.5625 kB / 0.6067 GB, free: 15.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.351e-05/0.4532, allocations: 34.55 kB / 0.6068 GB, free: 15.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4532, allocations: 0 / 0.6068 GB, free: 15.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.933e-05/0.4533, allocations: 71.88 kB / 0.6068 GB, free: 15.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.4533, allocations: 29.7 kB / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4534, allocations: 0.8125 kB / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.4534, allocations: 0 / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.4534, allocations: 1.188 kB / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.4534, allocations: 0 / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.145e-05/0.4534, allocations: 0 / 0.6069 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.4534, allocations: 6.875 kB / 0.6069 GB, free: 15.65 MB / 426.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 () * 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 8.383e-05/0.4535, allocations: 135.5 kB / 0.607 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.4535, allocations: 7.953 kB / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.622e-05/0.4536, allocations: 10.7 kB / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.4536, allocations: 0 / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4536, allocations: 0 / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.4536, allocations: 2.75 kB / 0.607 GB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.985e-05/0.4537, allocations: 145.7 kB / 0.6072 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4537, allocations: 0 / 0.6072 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.4537, allocations: 0 / 0.6072 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4537, allocations: 11.89 kB / 0.6072 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.4537, allocations: 0 / 0.6072 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.4537, allocations: 0 / 0.6072 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4537, allocations: 4.203 kB / 0.6072 GB, free: 15.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.4538, allocations: 94.78 kB / 0.6073 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.4539, allocations: 77.11 kB / 0.6073 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.4539, allocations: 7.938 kB / 0.6073 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-06/0.4539, allocations: 4 kB / 0.6073 GB, free: 15.06 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.4539, allocations: 4 kB / 0.6073 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.4539, allocations: 0 / 0.6073 GB, free: 15.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.681e-05/0.454, allocations: 75.28 kB / 0.6074 GB, free: 14.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.454, allocations: 4.031 kB / 0.6074 GB, free: 14.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002077/0.4542, allocations: 23.94 kB / 0.6074 GB, free: 14.95 MB / 426.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) * 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.0004133/0.4546, allocations: 195.4 kB / 0.6076 GB, free: 14.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.997e-05/0.4547, allocations: 55.41 kB / 0.6077 GB, free: 14.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4547, allocations: 0 / 0.6077 GB, free: 14.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.927e-05/0.4548, allocations: 63.33 kB / 0.6077 GB, free: 14.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.565e-05/0.4549, allocations: 10.08 kB / 0.6078 GB, free: 14.65 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001894/0.4551, allocations: 83.31 kB / 0.6078 GB, free: 14.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/0.4553, allocations: 0.677 MB / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.695e-06/0.4553, allocations: 0 / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.255e-05/0.4554, allocations: 11.44 kB / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/0.4554, allocations: 0 / 0.6085 GB, free: 13.84 MB / 426.7 MB Notification: Performance of Templates: time 0.002889/0.4583, allocations: 0.556 MB / 0.609 GB, free: 13.28 MB / 426.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