Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 170.4 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.5 MB / 230.7 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009639/0.0009639, allocations: 93.86 kB / 281.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1947/0.1947, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.888e-05, allocations: 4 kB / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1265, allocations: 61.91 MB / 0.4947 GB, free: 1.266 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5118/0.6383, allocations: 84.94 MB / 0.5776 GB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.6386, allocations: 63.97 kB / 0.5777 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004871/0.6435, allocations: 1.42 MB / 0.5791 GB, free: 10.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.488e-06/0.6436, allocations: 0 / 0.5791 GB, free: 10.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.6436, allocations: 4.812 kB / 0.5791 GB, free: 10.13 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.0003945/0.644, allocations: 354.8 kB / 0.5794 GB, free: 9.738 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.753e-05/0.6441, allocations: 11.98 kB / 0.5794 GB, free: 9.727 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.49e-05/0.6441, allocations: 4 kB / 0.5794 GB, free: 9.723 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.6443, allocations: 159.1 kB / 0.5796 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.6443, allocations: 0 / 0.5796 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.6443, allocations: 0 / 0.5796 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.791e-05/0.6444, allocations: 3.953 kB / 0.5796 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.163e-05/0.6445, allocations: 29.7 kB / 0.5796 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.6445, allocations: 4 kB / 0.5796 GB, free: 9.484 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.6445, allocations: 3.938 kB / 0.5796 GB, free: 9.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.6445, allocations: 4 kB / 0.5796 GB, free: 9.477 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.6447, allocations: 126.2 kB / 0.5797 GB, free: 9.316 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.774e-05/0.6448, allocations: 18.61 kB / 0.5798 GB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.67e-05/0.6448, allocations: 4.859 kB / 0.5798 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.6448, allocations: 0 / 0.5798 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.742e-05/0.6449, allocations: 60.27 kB / 0.5798 GB, free: 9.207 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.6449, allocations: 0 / 0.5798 GB, free: 9.207 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002612/0.6452, allocations: 45.7 kB / 0.5799 GB, free: 9.156 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.6452, allocations: 77.11 kB / 0.5799 GB, free: 9.062 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.198e-05/0.6453, allocations: 88.94 kB / 0.58 GB, free: 8.969 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.6453, allocations: 25.7 kB / 0.58 GB, free: 8.938 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.6454, allocations: 80.98 kB / 0.5801 GB, free: 8.855 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.6454, allocations: 6.844 kB / 0.5801 GB, free: 8.852 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-06/0.6454, allocations: 0 / 0.5801 GB, free: 8.852 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.6456, allocations: 314.8 kB / 0.5804 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.006e-06/0.6456, allocations: 4.031 kB / 0.5804 GB, free: 8.531 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.752e-06/0.6456, allocations: 0 / 0.5804 GB, free: 8.531 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.479e-05/0.6457, allocations: 7.984 kB / 0.5804 GB, free: 8.523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6457, allocations: 0 / 0.5804 GB, free: 8.523 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001085/0.6458, allocations: 33.7 kB / 0.5805 GB, free: 8.484 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.444e-05/0.6458, allocations: 33.64 kB / 0.5805 GB, free: 8.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.6459, allocations: 3.984 kB / 0.5805 GB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.6459, allocations: 3.984 kB / 0.5805 GB, free: 8.438 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.6459, allocations: 0 / 0.5805 GB, free: 8.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.6459, allocations: 8.047 kB / 0.5805 GB, free: 8.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.656e-05/0.6459, allocations: 4 kB / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-06/0.646, allocations: 0 / 0.5805 GB, free: 8.426 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.881e-05/0.646, allocations: 126.7 kB / 0.5806 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.6461, allocations: 4 kB / 0.5806 GB, free: 8.285 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.022e-05/0.6461, allocations: 7.703 kB / 0.5807 GB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.6461, allocations: 3.938 kB / 0.5807 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6461, allocations: 0 / 0.5807 GB, free: 8.273 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.6461, allocations: 3.953 kB / 0.5807 GB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.6462, allocations: 130.2 kB / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.6463, allocations: 0 / 0.5808 GB, free: 8.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.6463, allocations: 4 kB / 0.5808 GB, free: 8.102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.6463, allocations: 0 / 0.5808 GB, free: 8.102 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.6463, allocations: 0 / 0.5808 GB, free: 8.102 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.6463, allocations: 3.938 kB / 0.5808 GB, free: 8.098 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.6463, allocations: 0 / 0.5808 GB, free: 8.098 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.6465, allocations: 69.08 kB / 0.5809 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.6465, allocations: 81.14 kB / 0.5809 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.6465, allocations: 0 / 0.5809 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.173e-05/0.6466, allocations: 0 / 0.5809 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.6466, allocations: 0 / 0.5809 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.6466, allocations: 8 kB / 0.5809 GB, free: 7.906 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.6466, allocations: 75.28 kB / 0.581 GB, free: 7.832 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6467, allocations: 0 / 0.581 GB, free: 7.832 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003459/0.647, allocations: 27.97 kB / 0.581 GB, free: 7.805 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.0005375/0.6476, allocations: 203.9 kB / 0.5812 GB, free: 7.625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001111/0.6477, allocations: 55.41 kB / 0.5813 GB, free: 7.559 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6477, allocations: 3.938 kB / 0.5813 GB, free: 7.555 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.07e-05/0.6478, allocations: 59.41 kB / 0.5813 GB, free: 7.484 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.6479, allocations: 3.953 kB / 0.5814 GB, free: 7.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002226/0.6481, allocations: 46.31 kB / 0.5814 GB, free: 7.414 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003475/0.6485, allocations: 0.6768 MB / 0.5821 GB, free: 6.711 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 8.616e-06/0.6485, allocations: 0 / 0.5821 GB, free: 6.711 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.6485, allocations: 7.438 kB / 0.5821 GB, free: 6.703 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6485, allocations: 0 / 0.5821 GB, free: 6.703 MB / 394.7 MB Notification: Performance of Templates: time 0.003739/0.6523, allocations: 0.5637 MB / 0.5826 GB, free: 6.141 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches