Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") [: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.001083/0.001083, allocations: 179.4 kB / 8.519 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.301/1.301, 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.001043/0.001043, allocations: 91.98 kB / 281.2 MB, free: 5.457 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.1816/0.1816, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.843e-06/6.873e-06, allocations: 224 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.14, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4807, allocations: 84.66 MB / 0.5768 GB, free: 12.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.481, allocations: 59.56 kB / 0.5768 GB, free: 12.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.004999/0.486, allocations: 1.479 MB / 0.5783 GB, free: 10.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.486, allocations: 0 / 0.5783 GB, free: 10.62 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003426/0.4864, allocations: 365.2 kB / 0.5786 GB, free: 10.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.4864, allocations: 15.97 kB / 0.5786 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.4865, allocations: 8.781 kB / 0.5786 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.4867, allocations: 167 kB / 0.5788 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.4867, allocations: 0 / 0.5788 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.4867, allocations: 4 kB / 0.5788 GB, free: 9.988 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001388/0.4869, allocations: 27.89 kB / 0.5788 GB, free: 9.961 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.487, allocations: 49.62 kB / 0.5789 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.487, allocations: 0 / 0.5789 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.487, allocations: 2.438 kB / 0.5789 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/0.487, allocations: 0 / 0.5789 GB, free: 9.906 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002218/0.4873, allocations: 162 kB / 0.579 GB, free: 9.711 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002338/0.4875, allocations: 41.72 kB / 0.5791 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.544e-05/0.4876, allocations: 24.84 kB / 0.5791 GB, free: 9.637 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002886/0.4879, allocations: 113.1 kB / 0.5792 GB, free: 9.508 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.4879, allocations: 30.84 kB / 0.5792 GB, free: 9.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.4879, allocations: 0 / 0.5792 GB, free: 9.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.03784/0.5258, allocations: 2.177 MB / 0.5813 GB, free: 7.262 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.5258, allocations: 55.31 kB / 0.5814 GB, free: 7.195 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.579e-05/0.5259, allocations: 97 kB / 0.5815 GB, free: 7.094 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.526, allocations: 25.7 kB / 0.5815 GB, free: 7.062 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.559e-05/0.526, allocations: 84.14 kB / 0.5816 GB, free: 6.977 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.897e-05/0.5261, allocations: 55.11 kB / 0.5816 GB, free: 6.922 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.478e-05/0.5261, allocations: 0 / 0.5816 GB, free: 6.922 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.5262, allocations: 323 kB / 0.582 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.5265, allocations: 143.9 kB / 0.5821 GB, free: 6.457 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.5267, allocations: 135.9 kB / 0.5822 GB, free: 6.324 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.5272, allocations: 199.9 kB / 0.5824 GB, free: 6.129 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.5272, allocations: 4 kB / 0.5824 GB, free: 6.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008941/0.5281, allocations: 420.1 kB / 0.5828 GB, free: 5.711 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.5282, allocations: 7.984 kB / 0.5828 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.5282, allocations: 0 / 0.5828 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.5282, allocations: 7.906 kB / 0.5828 GB, free: 5.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.5286, allocations: 83.88 kB / 0.5829 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.5286, allocations: 0 / 0.5829 GB, free: 5.613 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.5289, allocations: 23.98 kB / 0.5829 GB, free: 5.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.529, allocations: 20.23 kB / 0.583 GB, free: 5.57 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0001046/0.5291, allocations: 104.9 kB / 0.5831 GB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.5291, allocations: 7.906 kB / 0.5831 GB, free: 5.453 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.5305, allocations: 0.5369 MB / 0.5836 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.5305, allocations: 0 / 0.5836 GB, free: 4.898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.5305, allocations: 3.906 kB / 0.5836 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.5305, allocations: 0 / 0.5836 GB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.5326, allocations: 0.8543 MB / 0.5844 GB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.5327, allocations: 4 kB / 0.5844 GB, free: 3.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.533, allocations: 80.06 kB / 0.5845 GB, free: 3.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.533, allocations: 4 kB / 0.5845 GB, free: 3.891 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.533, allocations: 15.98 kB / 0.5845 GB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.5331, allocations: 3.938 kB / 0.5845 GB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5331, allocations: 4 kB / 0.5845 GB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008121/0.5339, allocations: 492 kB / 0.585 GB, free: 3.316 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.01e-05/0.5339, allocations: 93.02 kB / 0.5851 GB, free: 3.207 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.534, allocations: 4 kB / 0.5851 GB, free: 3.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002341/0.5342, allocations: 27.97 kB / 0.5851 GB, free: 3.176 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.589e-05/0.5343, allocations: 19.88 kB / 0.5851 GB, free: 3.156 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.21e-05/0.5343, allocations: 16 kB / 0.5852 GB, free: 3.141 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.847e-05/0.5344, allocations: 87.27 kB / 0.5852 GB, free: 3.055 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009339/0.5353, allocations: 339.7 kB / 0.5856 GB, free: 2.723 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001325/0.5366, allocations: 262.8 kB / 0.5858 GB, free: 2.453 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000456/0.5371, allocations: 271.8 kB / 0.5861 GB, free: 2.188 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.5371, allocations: 4 kB / 0.5861 GB, free: 2.184 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001902/0.5373, allocations: 111.9 kB / 0.5862 GB, free: 2.074 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.5375, allocations: 5.859 kB / 0.5862 GB, free: 2.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.5388, allocations: 360.8 kB / 0.5865 GB, free: 1.676 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000512/0.5393, allocations: 0.7467 MB / 0.5873 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5393, allocations: 0 / 0.5873 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of Templates: time 0.02313/0.5624, allocations: 17.13 MB / 0.604 GB, free: 15.77 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches