Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.00141, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.565/1.565, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008462/0.0008462, allocations: 82.64 kB / 261.8 MB, free: 1.676 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.1925/0.1925, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.818e-05/1.824e-05, allocations: 0 / 418.2 MB, free: 28.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1251, allocations: 58.86 MB / 477.1 MB, free: 1.645 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3798/0.505, allocations: 83.81 MB / 0.5478 GB, free: 9.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/0.5052, allocations: 65.28 kB / 0.5478 GB, free: 9.164 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00296/0.5082, allocations: 1.418 MB / 0.5492 GB, free: 8.816 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5082, allocations: 3.938 kB / 0.5492 GB, free: 8.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.5082, allocations: 0 / 0.5492 GB, free: 8.816 MB / 362.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.0001813/0.5084, allocations: 344.6 kB / 0.5495 GB, free: 8.438 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.5084, allocations: 11.56 kB / 0.5496 GB, free: 8.438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.718e-05/0.5085, allocations: 3.938 kB / 0.5496 GB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.566e-05/0.5085, allocations: 167 kB / 0.5497 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.5085, allocations: 0 / 0.5497 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.998e-06/0.5086, allocations: 0 / 0.5497 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.114e-05/0.5086, allocations: 6.516 kB / 0.5497 GB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.711e-05/0.5086, allocations: 29.45 kB / 0.5498 GB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.5087, allocations: 3.984 kB / 0.5498 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.5087, allocations: 0 / 0.5498 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5087, allocations: 3.938 kB / 0.5498 GB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.355e-05/0.5088, allocations: 130 kB / 0.5499 GB, free: 8.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.881e-05/0.5088, allocations: 23.8 kB / 0.5499 GB, free: 8.004 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.002e-05/0.5088, allocations: 4.859 kB / 0.5499 GB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.5088, allocations: 3.812 kB / 0.5499 GB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.5089, allocations: 56.27 kB / 0.55 GB, free: 7.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.5089, allocations: 0 / 0.55 GB, free: 7.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.509, allocations: 39.59 kB / 0.55 GB, free: 7.895 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.629e-05/0.5091, allocations: 77.11 kB / 0.5501 GB, free: 7.801 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.882e-05/0.5091, allocations: 89.03 kB / 0.5502 GB, free: 7.707 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-06/0.5091, allocations: 29.64 kB / 0.5502 GB, free: 7.672 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.989e-06/0.5091, allocations: 80.14 kB / 0.5503 GB, free: 7.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.411e-05/0.5091, allocations: 0 / 0.5503 GB, free: 7.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-06/0.5091, allocations: 0 / 0.5503 GB, free: 7.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.137e-05/0.5092, allocations: 317.4 kB / 0.5506 GB, free: 7.277 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.863e-06/0.5092, allocations: 3.438 kB / 0.5506 GB, free: 7.277 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-06/0.5092, allocations: 0 / 0.5506 GB, free: 7.277 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.913e-05/0.5092, allocations: 8.031 kB / 0.5506 GB, free: 7.273 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.5093, allocations: 3.281 kB / 0.5506 GB, free: 7.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.144e-05/0.5093, allocations: 36.06 kB / 0.5506 GB, free: 7.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.5093, allocations: 33.45 kB / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.5093, allocations: 3.641 kB / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.5094, allocations: 0 / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.51e-07/0.5094, allocations: 0 / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.5094, allocations: 0 / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.959e-06/0.5094, allocations: 0 / 0.5507 GB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.5094, allocations: 3.656 kB / 0.5507 GB, free: 7.207 MB / 362.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 4.602e-05/0.5095, allocations: 130.7 kB / 0.5508 GB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-06/0.5095, allocations: 3.953 kB / 0.5508 GB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.132e-05/0.5095, allocations: 10.34 kB / 0.5508 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.5095, allocations: 0 / 0.5508 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.5095, allocations: 7.938 kB / 0.5508 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.5095, allocations: 0 / 0.5508 GB, free: 7.051 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.968e-05/0.5096, allocations: 126.1 kB / 0.5509 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.5096, allocations: 3.938 kB / 0.5509 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.212e-06/0.5096, allocations: 2.812 kB / 0.5509 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.5096, allocations: 3.875 kB / 0.5509 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.5096, allocations: 4 kB / 0.5509 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5096, allocations: 3.953 kB / 0.5509 GB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5096, allocations: 0 / 0.5509 GB, free: 6.883 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.03e-05/0.5097, allocations: 59.06 kB / 0.551 GB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.5097, allocations: 80.42 kB / 0.5511 GB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.5097, allocations: 0 / 0.5511 GB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.805e-06/0.5097, allocations: 2.578 kB / 0.5511 GB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.615e-05/0.5097, allocations: 15.36 kB / 0.5511 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.5097, allocations: 0 / 0.5511 GB, free: 6.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 1.34e-05/0.5098, allocations: 75.28 kB / 0.5512 GB, free: 6.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.5098, allocations: 0 / 0.5512 GB, free: 6.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001826/0.51, allocations: 19.34 kB / 0.5512 GB, free: 6.637 MB / 362.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.0003457/0.5103, allocations: 202.4 kB / 0.5514 GB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.598e-05/0.5104, allocations: 58.69 kB / 0.5514 GB, free: 6.434 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.5104, allocations: 0 / 0.5514 GB, free: 6.434 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.702e-05/0.5104, allocations: 58.09 kB / 0.5515 GB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.211e-05/0.5105, allocations: 3.844 kB / 0.5515 GB, free: 6.367 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001168/0.5106, allocations: 46 kB / 0.5515 GB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.68e-05/0.5107, allocations: 0.6755 MB / 0.5522 GB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.681e-06/0.5107, allocations: 3.844 kB / 0.5522 GB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.704e-06/0.5108, allocations: 7.438 kB / 0.5522 GB, free: 5.598 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5108, allocations: 0 / 0.5522 GB, free: 5.598 MB / 362.7 MB Notification: Performance of Templates: time 0.002351/0.5131, allocations: 0.5694 MB / 0.5528 GB, free: 5.355 MB / 362.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches