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.002121/0.002121, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.976/1.976, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001579/0.001579, allocations: 94.3 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2875/0.2875, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.669e-05/1.685e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3851, allocations: 58.86 MB / 477.1 MB, free: 5.258 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1543/0.5395, allocations: 83.81 MB / 0.5477 GB, free: 15.48 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.5397, allocations: 59.97 kB / 0.5478 GB, free: 15.42 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.005408/0.5452, allocations: 1.421 MB / 0.5492 GB, free: 14 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5452, allocations: 0 / 0.5492 GB, free: 14 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.5452, allocations: 0 / 0.5492 GB, free: 14 MB / 395.1 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.0003164/0.5456, allocations: 348.2 kB / 0.5495 GB, free: 13.61 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.5456, allocations: 8.031 kB / 0.5495 GB, free: 13.6 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.5457, allocations: 8 kB / 0.5495 GB, free: 13.59 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.5458, allocations: 163 kB / 0.5497 GB, free: 13.39 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.5458, allocations: 4 kB / 0.5497 GB, free: 13.39 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.5458, allocations: 0 / 0.5497 GB, free: 13.39 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.929e-05/0.5459, allocations: 0 / 0.5497 GB, free: 13.39 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.512e-05/0.546, allocations: 33.7 kB / 0.5497 GB, free: 13.35 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.546, allocations: 0 / 0.5497 GB, free: 13.35 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.546, allocations: 0 / 0.5497 GB, free: 13.35 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.546, allocations: 0 / 0.5497 GB, free: 13.35 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.5461, allocations: 134.2 kB / 0.5499 GB, free: 13.18 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.749e-05/0.5462, allocations: 20.98 kB / 0.5499 GB, free: 13.16 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.449e-05/0.5462, allocations: 8.953 kB / 0.5499 GB, free: 13.14 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.008e-05/0.5462, allocations: 4 kB / 0.5499 GB, free: 13.14 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.524e-05/0.5463, allocations: 64.2 kB / 0.5499 GB, free: 13.06 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.5463, allocations: 0 / 0.5499 GB, free: 13.06 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001802/0.5465, allocations: 37.69 kB / 0.55 GB, free: 13.02 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.5466, allocations: 77.11 kB / 0.5501 GB, free: 12.93 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.404e-05/0.5466, allocations: 85 kB / 0.5501 GB, free: 12.84 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.5467, allocations: 25.7 kB / 0.5502 GB, free: 12.8 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.5467, allocations: 150.6 kB / 0.5503 GB, free: 12.66 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.781e-05/0.5468, allocations: 4.031 kB / 0.5503 GB, free: 12.65 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-06/0.5468, allocations: 7.938 kB / 0.5503 GB, free: 12.64 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.5469, allocations: 310.8 kB / 0.5506 GB, free: 12.33 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.5469, allocations: 0 / 0.5506 GB, free: 12.33 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.775e-06/0.5469, allocations: 0 / 0.5506 GB, free: 12.33 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.649e-05/0.547, allocations: 14.94 kB / 0.5506 GB, free: 12.32 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.547, allocations: 0 / 0.5506 GB, free: 12.32 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.199e-05/0.5471, allocations: 37.66 kB / 0.5507 GB, free: 12.28 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/0.5472, allocations: 33.8 kB / 0.5507 GB, free: 12.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.5472, allocations: 0 / 0.5507 GB, free: 12.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.5472, allocations: 0 / 0.5507 GB, free: 12.24 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.388e-06/0.5472, allocations: 3.984 kB / 0.5507 GB, free: 12.23 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.5472, allocations: 0 / 0.5507 GB, free: 12.23 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.5473, allocations: 4 kB / 0.5507 GB, free: 12.23 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.5473, allocations: 0 / 0.5507 GB, free: 12.23 MB / 395.1 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 0.0001065/0.5474, allocations: 130.7 kB / 0.5508 GB, free: 12.09 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.235e-05/0.5474, allocations: 3.953 kB / 0.5508 GB, free: 12.09 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.595e-05/0.5474, allocations: 11.75 kB / 0.5508 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5475, allocations: 0 / 0.5508 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5475, allocations: 0 / 0.5508 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.5475, allocations: 0 / 0.5508 GB, free: 12.07 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.404e-05/0.5476, allocations: 126.2 kB / 0.551 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5476, allocations: 3.938 kB / 0.551 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.122e-06/0.5476, allocations: 0 / 0.551 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.5476, allocations: 4 kB / 0.551 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.5476, allocations: 0 / 0.551 GB, free: 11.91 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.5476, allocations: 3.953 kB / 0.551 GB, free: 11.9 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5477, allocations: 0 / 0.551 GB, free: 11.9 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.5478, allocations: 69.12 kB / 0.551 GB, free: 11.82 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.372e-05/0.5478, allocations: 77.11 kB / 0.5511 GB, free: 11.72 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.5479, allocations: 0 / 0.5511 GB, free: 11.72 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.541e-05/0.5479, allocations: 4 kB / 0.5511 GB, free: 11.72 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.055e-05/0.5479, allocations: 4.5 kB / 0.5511 GB, free: 11.71 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.5479, allocations: 4 kB / 0.5511 GB, free: 11.71 MB / 395.1 MB Notification: Performance of sorting global known variables: time 3.456e-05/0.548, allocations: 75.28 kB / 0.5512 GB, free: 11.64 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.548, allocations: 7.969 kB / 0.5512 GB, free: 11.63 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0002989/0.5483, allocations: 23.98 kB / 0.5512 GB, free: 11.61 MB / 395.1 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.0005024/0.5488, allocations: 193.3 kB / 0.5514 GB, free: 11.42 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 8.775e-05/0.5489, allocations: 59.41 kB / 0.5515 GB, free: 11.35 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5489, allocations: 0 / 0.5515 GB, free: 11.35 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.878e-05/0.549, allocations: 51.41 kB / 0.5515 GB, free: 11.29 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001041/0.5491, allocations: 4 kB / 0.5515 GB, free: 11.28 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001512/0.5493, allocations: 73.91 kB / 0.5516 GB, free: 11.18 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.5496, allocations: 0.6806 MB / 0.5523 GB, free: 10.47 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.5496, allocations: 7.438 kB / 0.5523 GB, free: 10.46 MB / 395.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5496, allocations: 4 kB / 0.5523 GB, free: 10.46 MB / 395.1 MB Notification: Performance of Templates: time 0.002833/0.5524, allocations: 0.7673 MB / 0.553 GB, free: 9.695 MB / 395.1 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