Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices") [: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.001603/0.001602, allocations: 208.1 kB / 8.545 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 94.05 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 45.15 MB / 383.3 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.026e-06/9.137e-06, allocations: 4 kB / 452.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1319, allocations: 63.24 MB / 0.5038 GB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4247/0.5567, allocations: 87.88 MB / 0.5896 GB, free: 15.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.557, allocations: 65.91 kB / 0.5897 GB, free: 15.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008729/0.5657, allocations: 2.583 MB / 0.5922 GB, free: 13.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.5658, allocations: 0 / 0.5922 GB, free: 13.14 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.0003802/0.5662, allocations: 383.1 kB / 0.5925 GB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.5662, allocations: 8.031 kB / 0.5925 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.5662, allocations: 4.75 kB / 0.5926 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.5664, allocations: 159.1 kB / 0.5927 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.5664, allocations: 0 / 0.5927 GB, free: 12.51 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.5664, allocations: 7.906 kB / 0.5927 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.54e-05/0.5665, allocations: 3.938 kB / 0.5927 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.918e-05/0.5665, allocations: 29.7 kB / 0.5927 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.5665, allocations: 0 / 0.5927 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.188e-06/0.5665, allocations: 4 kB / 0.5927 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.5666, allocations: 7.922 kB / 0.5928 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.5667, allocations: 125.9 kB / 0.5929 GB, free: 12.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.018e-05/0.5668, allocations: 14.58 kB / 0.5929 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.633e-05/0.5668, allocations: 8.953 kB / 0.5929 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.945e-06/0.5668, allocations: 0 / 0.5929 GB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.5668, allocations: 64.2 kB / 0.593 GB, free: 12.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.5668, allocations: 0 / 0.593 GB, free: 12.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.567, allocations: 37.59 kB / 0.593 GB, free: 12.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.5671, allocations: 77.11 kB / 0.5931 GB, free: 12.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.26e-05/0.5671, allocations: 92.56 kB / 0.5932 GB, free: 11.95 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.5671, allocations: 25.7 kB / 0.5932 GB, free: 11.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.5672, allocations: 80.14 kB / 0.5933 GB, free: 11.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.5672, allocations: 4 kB / 0.5933 GB, free: 11.83 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-06/0.5672, allocations: 4.031 kB / 0.5933 GB, free: 11.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5673, allocations: 310.8 kB / 0.5936 GB, free: 11.52 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.074e-06/0.5674, allocations: 0 / 0.5936 GB, free: 11.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-06/0.5674, allocations: 0 / 0.5936 GB, free: 11.52 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.178e-05/0.5674, allocations: 4 kB / 0.5936 GB, free: 11.51 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5674, allocations: 0 / 0.5936 GB, free: 11.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.708e-05/0.5675, allocations: 37.62 kB / 0.5936 GB, free: 11.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.5675, allocations: 7.438 kB / 0.5936 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.5675, allocations: 8 kB / 0.5936 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.5675, allocations: 0 / 0.5936 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.011e-06/0.5675, allocations: 0 / 0.5936 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5676, allocations: 4 kB / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.304e-05/0.5676, allocations: 0 / 0.5936 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.5676, allocations: 0 / 0.5936 GB, free: 11.45 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.639e-05/0.5677, allocations: 129.9 kB / 0.5937 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-06/0.5677, allocations: 4 kB / 0.5937 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.361e-05/0.5677, allocations: 6.953 kB / 0.5938 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.5677, allocations: 7.906 kB / 0.5938 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5677, allocations: 0 / 0.5938 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5677, allocations: 3.984 kB / 0.5938 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.403e-05/0.5678, allocations: 122.2 kB / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.62e-07/0.5678, allocations: 0 / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.094e-06/0.5678, allocations: 4 kB / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.5678, allocations: 0 / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.5678, allocations: 0 / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.5679, allocations: 0 / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5679, allocations: 0 / 0.5939 GB, free: 11.13 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.796e-05/0.568, allocations: 72.28 kB / 0.594 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.568, allocations: 77.11 kB / 0.594 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.568, allocations: 3.938 kB / 0.594 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.11e-05/0.568, allocations: 4 kB / 0.594 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.675e-05/0.5681, allocations: 4 kB / 0.594 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.5681, allocations: 7.922 kB / 0.594 GB, free: 10.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.564e-05/0.5681, allocations: 75.28 kB / 0.5941 GB, free: 10.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000325/0.5684, allocations: 83.86 kB / 0.5942 GB, free: 10.77 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.0004909/0.5689, allocations: 210.1 kB / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.81e-05/0.569, allocations: 33.69 kB / 0.5944 GB, free: 10.53 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.569, allocations: 0 / 0.5944 GB, free: 10.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.128e-05/0.5691, allocations: 33.77 kB / 0.5945 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.665e-05/0.5692, allocations: 3.906 kB / 0.5945 GB, free: 10.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001573/0.5693, allocations: 51.64 kB / 0.5945 GB, free: 10.42 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/0.5696, allocations: 0.6841 MB / 0.5952 GB, free: 9.707 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5696, allocations: 0 / 0.5952 GB, free: 9.707 MB / 394.7 MB Notification: Performance of Templates: time 0.003706/0.5733, allocations: 1.424 MB / 0.5966 GB, free: 8.293 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches