Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001525/0.001526, allocations: 200.1 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 89.64 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1729/0.1729, allocations: 45.15 MB / 383.4 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.922e-06/5.951e-06, allocations: 0 / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4272, allocations: 85.97 MB / 0.5877 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001473/0.4274, allocations: 56.73 kB / 0.5878 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.008908/0.4363, allocations: 3.408 MB / 0.5911 GB, free: 14.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.4364, allocations: 0 / 0.5911 GB, free: 14.29 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.000297/0.4367, allocations: 387.6 kB / 0.5915 GB, free: 13.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.4367, allocations: 8.031 kB / 0.5915 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.246e-05/0.4367, allocations: 4 kB / 0.5915 GB, free: 13.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.4369, allocations: 159.1 kB / 0.5916 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.4369, allocations: 0 / 0.5916 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.4369, allocations: 4 kB / 0.5916 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.32e-05/0.4369, allocations: 0 / 0.5916 GB, free: 13.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.766e-05/0.437, allocations: 37.53 kB / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.437, allocations: 0 / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.437, allocations: 4 kB / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.437, allocations: 0 / 0.5917 GB, free: 13.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.4371, allocations: 126.2 kB / 0.5918 GB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.942e-05/0.4372, allocations: 22.45 kB / 0.5918 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.4372, allocations: 8.953 kB / 0.5918 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.285e-06/0.4372, allocations: 0 / 0.5918 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.4373, allocations: 60.25 kB / 0.5919 GB, free: 13.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4373, allocations: 0 / 0.5919 GB, free: 13.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001469/0.4374, allocations: 29.7 kB / 0.5919 GB, free: 13.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.4375, allocations: 85.05 kB / 0.592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.324e-05/0.4375, allocations: 92.94 kB / 0.5921 GB, free: 13.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.4375, allocations: 25.7 kB / 0.5921 GB, free: 13.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.353e-05/0.4376, allocations: 83.27 kB / 0.5922 GB, free: 12.98 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.4376, allocations: 0 / 0.5922 GB, free: 12.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-06/0.4376, allocations: 0 / 0.5922 GB, free: 12.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4377, allocations: 314.8 kB / 0.5925 GB, free: 12.67 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.896e-06/0.4377, allocations: 8.062 kB / 0.5925 GB, free: 12.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.359e-06/0.4377, allocations: 4 kB / 0.5925 GB, free: 12.66 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.68e-05/0.4378, allocations: 0 / 0.5925 GB, free: 12.66 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4378, allocations: 0 / 0.5925 GB, free: 12.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.035e-05/0.4378, allocations: 33.7 kB / 0.5925 GB, free: 12.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.4379, allocations: 4 kB / 0.5925 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.4379, allocations: 7.984 kB / 0.5925 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.4379, allocations: 3.906 kB / 0.5926 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.4379, allocations: 0 / 0.5926 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.4379, allocations: 4 kB / 0.5926 GB, free: 12.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.153e-05/0.4379, allocations: 4.094 kB / 0.5926 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.4379, allocations: 0 / 0.5926 GB, free: 12.59 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.221e-05/0.438, allocations: 135 kB / 0.5927 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.438, allocations: 4 kB / 0.5927 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.379e-05/0.4381, allocations: 3 kB / 0.5927 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.4381, allocations: 3.906 kB / 0.5927 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.4381, allocations: 0 / 0.5927 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.4381, allocations: 0 / 0.5927 GB, free: 12.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.084e-05/0.4381, allocations: 126.2 kB / 0.5928 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.4382, allocations: 4 kB / 0.5928 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.654e-06/0.4382, allocations: 4 kB / 0.5928 GB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.4382, allocations: 7.922 kB / 0.5928 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.4382, allocations: 0 / 0.5928 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.4382, allocations: 0 / 0.5928 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4382, allocations: 3.938 kB / 0.5928 GB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.339e-05/0.4383, allocations: 64.97 kB / 0.5929 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.4383, allocations: 77.11 kB / 0.593 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.361e-05/0.4383, allocations: 4.031 kB / 0.593 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.4384, allocations: 4 kB / 0.593 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.4384, allocations: 0 / 0.593 GB, free: 12.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.4384, allocations: 3.938 kB / 0.593 GB, free: 12.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.251e-05/0.4384, allocations: 75.28 kB / 0.5931 GB, free: 12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.4386, allocations: 31.89 kB / 0.5931 GB, free: 11.97 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.0003544/0.439, allocations: 182.5 kB / 0.5933 GB, free: 11.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.885e-05/0.4391, allocations: 33.64 kB / 0.5933 GB, free: 11.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4391, allocations: 4 kB / 0.5933 GB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.731e-05/0.4391, allocations: 25.7 kB / 0.5933 GB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.45e-05/0.4392, allocations: 10.8 kB / 0.5933 GB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000131/0.4393, allocations: 43.27 kB / 0.5934 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.4396, allocations: 0.6841 MB / 0.594 GB, free: 10.95 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4396, allocations: 0 / 0.594 GB, free: 10.95 MB / 394.7 MB Notification: Performance of Templates: time 0.002491/0.4421, allocations: 0.607 MB / 0.5946 GB, free: 10.35 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches