Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000914/0.000914, allocations: 181.5 kB / 17.41 MB, free: 4.406 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.985/1.985, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001207/0.001207, allocations: 81.42 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.7876/0.7876, allocations: 43.55 MB / 363.8 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006222/0.0006227, allocations: 16 kB / 432.6 MB, free: 5.688 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2164, allocations: 58.85 MB / 491.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5709/0.7874, allocations: 84.59 MB / 0.5625 GB, free: 1.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.7878, allocations: 69.22 kB / 0.5626 GB, free: 1.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004731/0.7926, allocations: 1.384 MB / 0.5639 GB, free: 296 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.7926, allocations: 0 / 0.5639 GB, free: 296 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.7927, allocations: 0 / 0.5639 GB, free: 296 kB / 378.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.0003858/0.7931, allocations: 355.4 kB / 0.5643 GB, free: 15.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/0.7931, allocations: 10.98 kB / 0.5643 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.875e-05/0.7932, allocations: 7.938 kB / 0.5643 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.7933, allocations: 160.4 kB / 0.5644 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.7934, allocations: 4.375 kB / 0.5645 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.7934, allocations: 384 / 0.5645 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.7935, allocations: 34.25 kB / 0.5645 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.7935, allocations: 192 / 0.5645 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.7936, allocations: 7.938 kB / 0.5645 GB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.7936, allocations: 4 kB / 0.5645 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.12e-05/0.7936, allocations: 0 / 0.5645 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.7938, allocations: 142.8 kB / 0.5646 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.7939, allocations: 22.55 kB / 0.5647 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.233e-05/0.7939, allocations: 6.359 kB / 0.5647 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.7939, allocations: 0 / 0.5647 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.18e-05/0.794, allocations: 68.31 kB / 0.5647 GB, free: 15.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.794, allocations: 4 kB / 0.5647 GB, free: 15.31 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002292/0.7942, allocations: 59.34 kB / 0.5648 GB, free: 15.24 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.687e-05/0.7943, allocations: 85.05 kB / 0.5649 GB, free: 15.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.7944, allocations: 90.48 kB / 0.565 GB, free: 15.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.7944, allocations: 25.7 kB / 0.565 GB, free: 15.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.514e-05/0.7945, allocations: 80.14 kB / 0.5651 GB, free: 14.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.142e-05/0.7945, allocations: 0.9375 kB / 0.5651 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.524e-06/0.7945, allocations: 0 / 0.5651 GB, free: 14.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.7947, allocations: 323 kB / 0.5654 GB, free: 14.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.679e-05/0.7947, allocations: 4 kB / 0.5654 GB, free: 14.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.7947, allocations: 0 / 0.5654 GB, free: 14.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.301e-05/0.7948, allocations: 60.27 kB / 0.5654 GB, free: 14.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7948, allocations: 3.828 kB / 0.5654 GB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.795, allocations: 62.03 kB / 0.5655 GB, free: 14.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.795, allocations: 37.69 kB / 0.5655 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.795, allocations: 0 / 0.5655 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.7951, allocations: 7.969 kB / 0.5655 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.272e-06/0.7951, allocations: 4 kB / 0.5655 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.7951, allocations: 0 / 0.5655 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.811e-05/0.7951, allocations: 0 / 0.5655 GB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.7951, allocations: 5.375 kB / 0.5655 GB, free: 14.4 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 () * 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 0.0001091/0.7953, allocations: 131.5 kB / 0.5657 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.7953, allocations: 0 / 0.5657 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.7953, allocations: 11.06 kB / 0.5657 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.7953, allocations: 0 / 0.5657 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.7953, allocations: 3.984 kB / 0.5657 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.7954, allocations: 4 kB / 0.5657 GB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.7955, allocations: 145.7 kB / 0.5658 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7955, allocations: 0 / 0.5658 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-07/0.7955, allocations: 0 / 0.5658 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.7955, allocations: 4 kB / 0.5658 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.7955, allocations: 3.938 kB / 0.5658 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.7956, allocations: 3.562 kB / 0.5658 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7956, allocations: 0 / 0.5658 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001322/0.7957, allocations: 98.77 kB / 0.5659 GB, free: 13.92 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.7958, allocations: 79.14 kB / 0.566 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.7958, allocations: 3.938 kB / 0.566 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.546e-05/0.7958, allocations: 3.984 kB / 0.566 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.359e-05/0.7959, allocations: 8 kB / 0.566 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-06/0.7959, allocations: 0 / 0.566 GB, free: 13.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.056e-05/0.7959, allocations: 75.28 kB / 0.5661 GB, free: 13.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7959, allocations: 3.938 kB / 0.5661 GB, free: 13.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003679/0.7963, allocations: 16 kB / 0.5661 GB, free: 13.71 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) * 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.0005971/0.7969, allocations: 208.1 kB / 0.5663 GB, free: 13.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001184/0.7971, allocations: 63.41 kB / 0.5664 GB, free: 13.47 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.7971, allocations: 0 / 0.5664 GB, free: 13.47 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.14e-05/0.7971, allocations: 59.39 kB / 0.5664 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.7973, allocations: 3.984 kB / 0.5664 GB, free: 13.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002506/0.7976, allocations: 103.2 kB / 0.5665 GB, free: 13.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.7979, allocations: 0.6692 MB / 0.5672 GB, free: 12.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.485e-05/0.7979, allocations: 7.438 kB / 0.5672 GB, free: 12.57 MB / 394.7 MB Notification: Performance of SimCode: time 3.21e-07/0.7979, allocations: 128 / 0.5672 GB, free: 12.57 MB / 394.7 MB Notification: Performance of Templates: time 0.003143/0.8011, allocations: 0.7513 MB / 0.5679 GB, free: 11.82 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches