Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 182.3 kB / 8.52 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.0009474/0.0009476, allocations: 94.09 kB / 281.2 MB, free: 5.504 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.1827/0.1827, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.255e-06/8.285e-06, allocations: 4 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1299, allocations: 61.91 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3121/0.4421, allocations: 84.92 MB / 0.577 GB, free: 11.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000148/0.4423, allocations: 58.25 kB / 0.5771 GB, free: 11.81 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.009277/0.4516, allocations: 3.4 MB / 0.5804 GB, free: 8.473 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.4516, allocations: 0 / 0.5804 GB, free: 8.473 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.0003128/0.4519, allocations: 395.9 kB / 0.5808 GB, free: 8.035 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.452, allocations: 15.97 kB / 0.5808 GB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.452, allocations: 4 kB / 0.5808 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.4521, allocations: 159.1 kB / 0.5809 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.4522, allocations: 0 / 0.5809 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.4522, allocations: 0 / 0.5809 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.122e-05/0.4522, allocations: 0 / 0.5809 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.897e-05/0.4523, allocations: 41.67 kB / 0.581 GB, free: 7.773 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.4523, allocations: 3.906 kB / 0.581 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.4523, allocations: 0 / 0.581 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.4523, allocations: 0 / 0.581 GB, free: 7.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.4524, allocations: 130.3 kB / 0.5811 GB, free: 7.605 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.083e-05/0.4524, allocations: 18.52 kB / 0.5811 GB, free: 7.578 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.383e-05/0.4525, allocations: 4.859 kB / 0.5811 GB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.69e-06/0.4525, allocations: 0 / 0.5811 GB, free: 7.57 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.4525, allocations: 60.33 kB / 0.5812 GB, free: 7.496 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.4525, allocations: 0 / 0.5812 GB, free: 7.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.4527, allocations: 41.69 kB / 0.5812 GB, free: 7.449 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.4527, allocations: 77.11 kB / 0.5813 GB, free: 7.355 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.171e-05/0.4528, allocations: 88.91 kB / 0.5814 GB, free: 7.262 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.4528, allocations: 25.7 kB / 0.5814 GB, free: 7.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.258e-05/0.4528, allocations: 84.14 kB / 0.5815 GB, free: 7.145 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.4528, allocations: 0 / 0.5815 GB, free: 7.145 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-06/0.4529, allocations: 0 / 0.5815 GB, free: 7.145 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.884e-05/0.453, allocations: 310.8 kB / 0.5818 GB, free: 6.832 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.116e-06/0.453, allocations: 8.094 kB / 0.5818 GB, free: 6.824 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.96e-06/0.453, allocations: 4 kB / 0.5818 GB, free: 6.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.707e-05/0.453, allocations: 3.984 kB / 0.5818 GB, free: 6.816 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.453, allocations: 0 / 0.5818 GB, free: 6.816 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.526e-05/0.4531, allocations: 33.7 kB / 0.5818 GB, free: 6.777 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.4531, allocations: 10.34 kB / 0.5818 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.4531, allocations: 7.922 kB / 0.5818 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.4531, allocations: 0 / 0.5818 GB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.06e-05/0.4532, allocations: 3.906 kB / 0.5818 GB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.387e-06/0.4532, allocations: 4.094 kB / 0.5819 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.187e-05/0.4532, allocations: 0 / 0.5819 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.4532, allocations: 7.969 kB / 0.5819 GB, free: 6.746 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 7.039e-05/0.4533, allocations: 131.7 kB / 0.582 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-06/0.4533, allocations: 0 / 0.582 GB, free: 6.605 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.474e-05/0.4533, allocations: 3 kB / 0.582 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.4533, allocations: 0 / 0.582 GB, free: 6.602 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4534, allocations: 7.906 kB / 0.582 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.4534, allocations: 3.938 kB / 0.582 GB, free: 6.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.423e-05/0.4534, allocations: 130.2 kB / 0.5821 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4535, allocations: 0 / 0.5821 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4535, allocations: 0 / 0.5821 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4535, allocations: 0 / 0.5821 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.4535, allocations: 11.94 kB / 0.5821 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.4535, allocations: 0 / 0.5821 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4535, allocations: 0 / 0.5821 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.225e-05/0.4536, allocations: 65.03 kB / 0.5822 GB, free: 6.332 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.584e-05/0.4536, allocations: 81.14 kB / 0.5823 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.274e-05/0.4536, allocations: 0 / 0.5823 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-06/0.4537, allocations: 0 / 0.5823 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.065e-05/0.4537, allocations: 0 / 0.5823 GB, free: 6.234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.4537, allocations: 4 kB / 0.5823 GB, free: 6.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.481e-05/0.4537, allocations: 75.28 kB / 0.5823 GB, free: 6.156 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002194/0.4539, allocations: 31.98 kB / 0.5824 GB, free: 6.125 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.0003196/0.4543, allocations: 173.4 kB / 0.5825 GB, free: 5.973 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.559e-05/0.4543, allocations: 37.64 kB / 0.5826 GB, free: 5.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4543, allocations: 0 / 0.5826 GB, free: 5.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.702e-05/0.4544, allocations: 33.64 kB / 0.5826 GB, free: 5.891 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.376e-05/0.4545, allocations: 3.906 kB / 0.5826 GB, free: 5.887 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001246/0.4546, allocations: 52.06 kB / 0.5827 GB, free: 5.812 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.4548, allocations: 0.6763 MB / 0.5833 GB, free: 5.109 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4548, allocations: 0 / 0.5833 GB, free: 5.109 MB / 394.7 MB Notification: Performance of Templates: time 0.00222/0.4571, allocations: 0.6147 MB / 0.5839 GB, free: 4.5 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches