Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 180.1 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.335/1.335, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007083/0.0007083, allocations: 97.05 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3149/0.3149, allocations: 43.56 MB / 362.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 12 kB / 431.4 MB, free: 5.902 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1353, allocations: 58.84 MB / 490.2 MB, free: 10.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0007221/0.1361, allocations: 260.4 kB / 490.5 MB, free: 10.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008657/0.137, allocations: 336.7 kB / 490.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.542e-05/0.137, allocations: 0 / 490.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.297e-05/0.137, allocations: 3.938 kB / 490.8 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 3.602e-05/0.1371, allocations: 4 kB / 490.8 MB, free: 10.38 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.1374, allocations: 83.78 kB / 490.9 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.235e-05/0.1375, allocations: 19.92 kB / 490.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.1375, allocations: 4 kB / 490.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.247e-05/0.1376, allocations: 15.92 kB / 491 MB, free: 10.26 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.855e-05/0.1376, allocations: 19.91 kB / 491 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.1377, allocations: 4 kB / 491 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000248/0.1379, allocations: 99.89 kB / 491.1 MB, free: 10.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.7e-05/0.1379, allocations: 15.92 kB / 491.1 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.919e-05/0.138, allocations: 29.7 kB / 491.1 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001394/0.1381, allocations: 71.89 kB / 491.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1381, allocations: 0 / 491.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1381, allocations: 0 / 491.2 MB, free: 10.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1382, allocations: 3.938 kB / 491.2 MB, free: 10.02 MB / 378.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.0004887/0.1387, allocations: 351.5 kB / 491.5 MB, free: 9.625 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.1387, allocations: 8.031 kB / 491.5 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.1387, allocations: 7.906 kB / 491.6 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.1389, allocations: 171 kB / 491.7 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.139, allocations: 11.94 kB / 491.7 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.908e-05/0.139, allocations: 0 / 491.7 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.1391, allocations: 49.69 kB / 491.8 MB, free: 9.336 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1392, allocations: 4 kB / 491.8 MB, free: 9.332 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1392, allocations: 4 kB / 491.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1392, allocations: 0 / 491.8 MB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.579e-05/0.1393, allocations: 27.97 kB / 491.8 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002029/0.1395, allocations: 177.5 kB / 492 MB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002413/0.1397, allocations: 58.55 kB / 492 MB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.137e-05/0.1398, allocations: 28.86 kB / 492.1 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003056/0.1401, allocations: 113.1 kB / 492.2 MB, free: 8.852 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.1401, allocations: 38.56 kB / 492.2 MB, free: 8.805 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.1402, allocations: 0 / 492.2 MB, free: 8.805 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.04196/0.1821, allocations: 2.82 MB / 495 MB, free: 5.953 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.1822, allocations: 51.41 kB / 495.1 MB, free: 5.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.338e-05/0.1823, allocations: 109.8 kB / 495.2 MB, free: 5.773 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.1823, allocations: 25.7 kB / 495.2 MB, free: 5.742 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.1823, allocations: 84.14 kB / 495.3 MB, free: 5.656 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.171e-05/0.1824, allocations: 67 kB / 495.4 MB, free: 5.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.148e-05/0.1824, allocations: 0 / 495.4 MB, free: 5.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1826, allocations: 322.8 kB / 495.7 MB, free: 5.266 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003794/0.1829, allocations: 191.9 kB / 495.9 MB, free: 5.078 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.1833, allocations: 195.9 kB / 496.1 MB, free: 4.887 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.1838, allocations: 211.9 kB / 496.3 MB, free: 4.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1838, allocations: 0 / 496.3 MB, free: 4.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001008/0.1848, allocations: 497.3 kB / 496.8 MB, free: 4.188 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.1849, allocations: 4 kB / 496.8 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1849, allocations: 0 / 496.8 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1849, allocations: 0 / 496.8 MB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.1853, allocations: 79.88 kB / 496.8 MB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1853, allocations: 7.984 kB / 496.8 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002339/0.1855, allocations: 31.88 kB / 496.9 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.535e-05/0.1856, allocations: 19.98 kB / 496.9 MB, free: 4.047 MB / 378.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 () * Number of clocked 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.00012/0.1857, allocations: 117.8 kB / 497 MB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.1857, allocations: 11.98 kB / 497 MB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.187, allocations: 0.5754 MB / 497.6 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1871, allocations: 0 / 497.6 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1871, allocations: 0 / 497.6 MB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.1871, allocations: 4.234 kB / 497.6 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.1892, allocations: 0.9598 MB / 498.6 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1892, allocations: 4 kB / 498.6 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.1895, allocations: 88.06 kB / 498.7 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1895, allocations: 0 / 498.7 MB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.1896, allocations: 15.98 kB / 498.7 MB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.1896, allocations: 7.938 kB / 498.7 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1896, allocations: 0 / 498.7 MB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008896/0.1905, allocations: 0.4886 MB / 499.2 MB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.842e-05/0.1905, allocations: 89.02 kB / 499.3 MB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.248e-05/0.1906, allocations: 3.953 kB / 499.3 MB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.1908, allocations: 31.97 kB / 499.3 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.574e-05/0.1908, allocations: 19.92 kB / 499.3 MB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.1909, allocations: 19.98 kB / 499.3 MB, free: 1.473 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.766e-05/0.1909, allocations: 79.28 kB / 499.4 MB, free: 1.395 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1909, allocations: 0 / 499.4 MB, free: 1.395 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008166/0.1917, allocations: 316 kB / 499.7 MB, free: 1.086 MB / 378.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 () * Number of clocked 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.001236/0.193, allocations: 231.1 kB / 499.9 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008207/0.1938, allocations: 375.6 kB / 0.4886 GB, free: 496 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1938, allocations: 0 / 0.4886 GB, free: 496 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003414/0.1942, allocations: 164.2 kB / 0.4887 GB, free: 332 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.1944, allocations: 12 kB / 0.4887 GB, free: 320 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2096/0.404, allocations: 0.4944 MB / 0.4892 GB, free: 42.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.4042, allocations: 0.6996 MB / 0.4899 GB, free: 41.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.4045, allocations: 49.83 kB / 0.49 GB, free: 41.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4045, allocations: 1.25 kB / 0.49 GB, free: 41.8 MB / 378.7 MB Notification: Performance of Templates: time 0.01619/0.4207, allocations: 6.539 MB / 0.4963 GB, free: 41.45 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches