Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 175.6 kB / 8.517 MB, free: 1.859 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.38/1.38, allocations: 221.4 MB / 230.3 MB, free: 7.672 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.001072/0.001072, allocations: 88.72 kB / 281.2 MB, free: 5.492 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.2407/0.2407, allocations: 44.14 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.967e-06/9.017e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.163, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4053/0.5683, allocations: 86.77 MB / 0.5788 GB, free: 9.969 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.5686, allocations: 56.89 kB / 0.5789 GB, free: 9.945 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.008563/0.5772, allocations: 2.525 MB / 0.5813 GB, free: 7.461 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.5772, allocations: 0.8438 kB / 0.5813 GB, free: 7.461 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.0003767/0.5776, allocations: 384 kB / 0.5817 GB, free: 7.035 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.5777, allocations: 11.97 kB / 0.5817 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.5777, allocations: 0 / 0.5817 GB, free: 7.023 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.468e-05/0.5778, allocations: 167 kB / 0.5819 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.5778, allocations: 0 / 0.5819 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.5778, allocations: 4 kB / 0.5819 GB, free: 6.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.638e-05/0.5779, allocations: 3.906 kB / 0.5819 GB, free: 6.812 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.694e-05/0.5779, allocations: 25.7 kB / 0.5819 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.578, allocations: 7.938 kB / 0.5819 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.578, allocations: 0 / 0.5819 GB, free: 6.773 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.578, allocations: 4 kB / 0.5819 GB, free: 6.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.934e-05/0.5781, allocations: 122.2 kB / 0.582 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.224e-05/0.5781, allocations: 18.56 kB / 0.5821 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.81e-05/0.5782, allocations: 16.89 kB / 0.5821 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.5782, allocations: 0 / 0.5821 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.5782, allocations: 56.27 kB / 0.5821 GB, free: 6.496 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.5782, allocations: 0 / 0.5821 GB, free: 6.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.5784, allocations: 37.61 kB / 0.5822 GB, free: 6.453 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.5784, allocations: 77.11 kB / 0.5822 GB, free: 6.359 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.431e-05/0.5785, allocations: 85 kB / 0.5823 GB, free: 6.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.5785, allocations: 25.7 kB / 0.5823 GB, free: 6.238 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.025e-05/0.5785, allocations: 84.14 kB / 0.5824 GB, free: 6.152 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.5785, allocations: 0 / 0.5824 GB, free: 6.152 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.5785, allocations: 0 / 0.5824 GB, free: 6.152 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.5787, allocations: 318.8 kB / 0.5827 GB, free: 5.832 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.005e-06/0.5787, allocations: 4.031 kB / 0.5827 GB, free: 5.828 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.978e-06/0.5787, allocations: 3.938 kB / 0.5827 GB, free: 5.824 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.786e-05/0.5787, allocations: 4 kB / 0.5827 GB, free: 5.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5787, allocations: 0 / 0.5827 GB, free: 5.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.11e-05/0.5788, allocations: 33.64 kB / 0.5828 GB, free: 5.781 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.5788, allocations: 4 kB / 0.5828 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.5788, allocations: 0 / 0.5828 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.5788, allocations: 3.906 kB / 0.5828 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.5788, allocations: 4 kB / 0.5828 GB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.646e-06/0.5789, allocations: 4.094 kB / 0.5828 GB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.641e-05/0.5789, allocations: 7.969 kB / 0.5828 GB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.5789, allocations: 0 / 0.5828 GB, free: 5.758 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.711e-05/0.579, allocations: 126.7 kB / 0.5829 GB, free: 5.621 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-06/0.579, allocations: 4 kB / 0.5829 GB, free: 5.617 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.197e-05/0.579, allocations: 6.953 kB / 0.5829 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.579, allocations: 0 / 0.5829 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.579, allocations: 3.906 kB / 0.5829 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.579, allocations: 0 / 0.5829 GB, free: 5.605 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.493e-05/0.5791, allocations: 130.2 kB / 0.5831 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.5791, allocations: 0 / 0.5831 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.5791, allocations: 4 kB / 0.5831 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.5791, allocations: 0 / 0.5831 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.5791, allocations: 0 / 0.5831 GB, free: 5.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.5792, allocations: 4 kB / 0.5831 GB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5792, allocations: 0 / 0.5831 GB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.853e-05/0.5793, allocations: 68.92 kB / 0.5831 GB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.255e-05/0.5793, allocations: 85.12 kB / 0.5832 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.5793, allocations: 0 / 0.5832 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.127e-06/0.5793, allocations: 0 / 0.5832 GB, free: 5.246 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.488e-05/0.5793, allocations: 4 kB / 0.5832 GB, free: 5.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.5794, allocations: 0 / 0.5832 GB, free: 5.242 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.486e-05/0.5794, allocations: 75.28 kB / 0.5833 GB, free: 5.168 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003292/0.5797, allocations: 87.86 kB / 0.5834 GB, free: 5.082 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.0005001/0.5802, allocations: 211.2 kB / 0.5836 GB, free: 4.875 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.137e-05/0.5803, allocations: 29.7 kB / 0.5836 GB, free: 4.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5803, allocations: 0 / 0.5836 GB, free: 4.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.951e-05/0.5803, allocations: 33.58 kB / 0.5836 GB, free: 4.801 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.381e-05/0.5804, allocations: 7.906 kB / 0.5836 GB, free: 4.793 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001276/0.5806, allocations: 54.05 kB / 0.5837 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.5808, allocations: 0.6763 MB / 0.5843 GB, free: 4.016 MB / 394.7 MB Notification: Performance of SimCode: time 2e-07/0.5808, allocations: 0 / 0.5843 GB, free: 4.016 MB / 394.7 MB Notification: Performance of Templates: time 0.003587/0.5844, allocations: 1.429 MB / 0.5857 GB, free: 2.59 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches