Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") [: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.001509/0.00151, allocations: 182.4 kB / 8.516 MB, free: 1.852 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.403/1.403, allocations: 221.4 MB / 230.3 MB, free: 7.691 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.001002/0.001002, allocations: 84.75 kB / 281.2 MB, free: 5.449 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.1683/0.1683, allocations: 44.14 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.763e-06/6.793e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1069, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.326/0.4329, allocations: 87.78 MB / 0.5798 GB, free: 9.008 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.4332, allocations: 64.41 kB / 0.5799 GB, free: 8.953 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01783/0.451, allocations: 6.76 MB / 0.5865 GB, free: 2.215 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.4511, allocations: 4 kB / 0.5865 GB, free: 2.211 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003485/0.4514, allocations: 410.1 kB / 0.5869 GB, free: 1.766 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.4515, allocations: 15.97 kB / 0.5869 GB, free: 1.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.4517, allocations: 87.27 kB / 0.587 GB, free: 1.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001303/0.4518, allocations: 238.3 kB / 0.5872 GB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.4519, allocations: 158.5 kB / 0.5873 GB, free: 1.234 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.4519, allocations: 154.6 kB / 0.5875 GB, free: 1.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.941e-05/0.452, allocations: 154.5 kB / 0.5876 GB, free: 0.9297 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.149e-05/0.4521, allocations: 101.6 kB / 0.5877 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.273e-05/0.4521, allocations: 75.28 kB / 0.5878 GB, free: 0.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.56e-05/0.4521, allocations: 158.5 kB / 0.588 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.4522, allocations: 154.6 kB / 0.5881 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00023/0.4524, allocations: 418.5 kB / 0.5885 GB, free: 16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.745e-05/0.4525, allocations: 173.1 kB / 0.5887 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.728e-05/0.4525, allocations: 80.14 kB / 0.5887 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.4526, allocations: 83.22 kB / 0.5888 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/0.4526, allocations: 109.8 kB / 0.5889 GB, free: 15.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.4526, allocations: 0 / 0.5889 GB, free: 15.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 6.886e-05/0.4527, allocations: 33.69 kB / 0.589 GB, free: 15.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.184e-05/0.4528, allocations: 102.8 kB / 0.5891 GB, free: 15.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.548e-05/0.4529, allocations: 88.94 kB / 0.5891 GB, free: 15.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.4529, allocations: 29.83 kB / 0.5892 GB, free: 15.24 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.289e-05/0.4529, allocations: 80.14 kB / 0.5892 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.263e-06/0.4529, allocations: 0 / 0.5892 GB, free: 15.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.8e-07/0.4529, allocations: 4 kB / 0.5892 GB, free: 15.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.453, allocations: 314.8 kB / 0.5895 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.776e-06/0.453, allocations: 0 / 0.5895 GB, free: 14.84 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.058e-05/0.4531, allocations: 13.72 kB / 0.5896 GB, free: 14.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.779e-05/0.4531, allocations: 79.31 kB / 0.5896 GB, free: 14.74 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.518e-05/0.4531, allocations: 79.28 kB / 0.5897 GB, free: 14.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.418e-05/0.4532, allocations: 29.69 kB / 0.5897 GB, free: 14.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.4532, allocations: 4 kB / 0.5897 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.4532, allocations: 83.22 kB / 0.5898 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.276e-05/0.4533, allocations: 150.6 kB / 0.59 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-05/0.4533, allocations: 79.28 kB / 0.59 GB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.975e-05/0.4534, allocations: 158.5 kB / 0.5902 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.4535, allocations: 85.27 kB / 0.5903 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.4535, allocations: 79.22 kB / 0.5903 GB, free: 14 MB / 410.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 9.836e-05/0.4536, allocations: 259.5 kB / 0.5906 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.889e-05/0.4537, allocations: 109 kB / 0.5907 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.228e-05/0.4537, allocations: 115.8 kB / 0.5908 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.253e-05/0.4538, allocations: 180.3 kB / 0.591 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.549e-05/0.4539, allocations: 184.2 kB / 0.5912 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.155e-05/0.4539, allocations: 180.2 kB / 0.5913 GB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.4541, allocations: 377.8 kB / 0.5917 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-05/0.4541, allocations: 104.9 kB / 0.5918 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.906e-05/0.4542, allocations: 112.9 kB / 0.5919 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.403e-05/0.4542, allocations: 180.3 kB / 0.5921 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.4543, allocations: 180.2 kB / 0.5922 GB, free: 11.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-05/0.4544, allocations: 180.3 kB / 0.5924 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.611e-05/0.4544, allocations: 176.6 kB / 0.5926 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001158/0.4545, allocations: 311.8 kB / 0.5929 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.999e-05/0.4546, allocations: 182.1 kB / 0.5931 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.846e-05/0.4547, allocations: 184.1 kB / 0.5932 GB, free: 10.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.4548, allocations: 109 kB / 0.5933 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.4548, allocations: 184.3 kB / 0.5935 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.4549, allocations: 104.9 kB / 0.5936 GB, free: 10.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.536e-05/0.4549, allocations: 79.22 kB / 0.5937 GB, free: 10.37 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004698/0.4554, allocations: 135.8 kB / 0.5938 GB, free: 10.23 MB / 410.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0008201/0.4562, allocations: 0.4935 MB / 0.5943 GB, free: 9.777 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.128e-05/0.4563, allocations: 4 kB / 0.5943 GB, free: 9.773 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4563, allocations: 7.875 kB / 0.5943 GB, free: 9.766 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.72e-07/0.4563, allocations: 0 / 0.5943 GB, free: 9.766 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002605/0.4565, allocations: 0.5302 MB / 0.5948 GB, free: 9.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001339/0.4567, allocations: 115.4 kB / 0.5949 GB, free: 9.094 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.4569, allocations: 0.6841 MB / 0.5956 GB, free: 8.383 MB / 410.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4569, allocations: 0 / 0.5956 GB, free: 8.383 MB / 410.7 MB Notification: Performance of Templates: time 0.004901/0.4618, allocations: 2.545 MB / 0.5981 GB, free: 5.844 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches