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.0009878/0.000988, allocations: 175.3 kB / 16.72 MB, free: 5.086 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.167/1.167, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006299/0.0006299, allocations: 89.22 kB / 271.2 MB, free: 8.246 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.2742/0.2742, allocations: 43.56 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003211, allocations: 15.98 kB / 432 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09/0.09034, allocations: 58.86 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0005837/0.09096, allocations: 272.3 kB / 491.1 MB, free: 10.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005556/0.09153, allocations: 337.9 kB / 491.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.149e-05/0.09157, allocations: 0 / 491.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.344e-05/0.09159, allocations: 3.938 kB / 491.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.58e-05/0.09162, allocations: 0 / 491.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.09194, allocations: 79.75 kB / 491.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.048e-05/0.092, allocations: 23.92 kB / 491.5 MB, free: 10.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.077e-05/0.09205, allocations: 7.984 kB / 491.5 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.849e-05/0.09208, allocations: 11.92 kB / 491.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.915e-05/0.09213, allocations: 15.92 kB / 491.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.404e-05/0.09215, allocations: 4 kB / 491.6 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001866/0.09234, allocations: 103.9 kB / 491.7 MB, free: 10.06 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.66e-05/0.09237, allocations: 19.91 kB / 491.7 MB, free: 10.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.208e-05/0.09241, allocations: 37.64 kB / 491.7 MB, free: 9.996 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.09252, allocations: 59.91 kB / 491.8 MB, free: 9.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.09253, allocations: 0 / 491.8 MB, free: 9.938 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09254, allocations: 4 kB / 491.8 MB, free: 9.934 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.406e-06/0.09255, allocations: 0 / 491.8 MB, free: 9.934 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.0003794/0.09293, allocations: 355.7 kB / 492.1 MB, free: 9.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.09297, allocations: 8.031 kB / 492.1 MB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.093, allocations: 8.844 kB / 492.1 MB, free: 9.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.09312, allocations: 172.2 kB / 492.3 MB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.09314, allocations: 4.375 kB / 492.3 MB, free: 9.309 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.09317, allocations: 8.281 kB / 492.3 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001127/0.09329, allocations: 62.23 kB / 492.4 MB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.09331, allocations: 192 / 492.4 MB, free: 9.234 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.09332, allocations: 3.938 kB / 492.4 MB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.09333, allocations: 0 / 492.4 MB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.193e-05/0.0934, allocations: 27.92 kB / 492.4 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.09357, allocations: 173.6 kB / 492.6 MB, free: 8.984 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.09376, allocations: 50.56 kB / 492.6 MB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.607e-05/0.09382, allocations: 32.84 kB / 492.7 MB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.09407, allocations: 113.3 kB / 492.8 MB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.09411, allocations: 38.5 kB / 492.8 MB, free: 8.715 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.143e-06/0.09412, allocations: 3.938 kB / 492.8 MB, free: 8.711 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.03741/0.1315, allocations: 2.821 MB / 495.6 MB, free: 5.852 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1316, allocations: 55.41 kB / 495.7 MB, free: 5.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.889e-05/0.1317, allocations: 105.8 kB / 495.8 MB, free: 5.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.1317, allocations: 29.7 kB / 495.8 MB, free: 5.637 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.408e-05/0.1318, allocations: 80.14 kB / 495.9 MB, free: 5.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.532e-05/0.1319, allocations: 67 kB / 496 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.1319, allocations: 8 kB / 496 MB, free: 5.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.132, allocations: 318.8 kB / 496.3 MB, free: 5.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.1324, allocations: 187.9 kB / 496.5 MB, free: 4.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.1328, allocations: 195.9 kB / 496.7 MB, free: 4.785 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009745/0.1338, allocations: 445.7 kB / 497.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1338, allocations: 0 / 497.1 MB, free: 4.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000985/0.1348, allocations: 496.7 kB / 497.6 MB, free: 3.859 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1348, allocations: 4 kB / 497.6 MB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1348, allocations: 0 / 497.6 MB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1348, allocations: 8 kB / 497.6 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.1352, allocations: 75.88 kB / 497.7 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.1352, allocations: 4.469 kB / 497.7 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.1354, allocations: 27.98 kB / 497.7 MB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.77e-05/0.1354, allocations: 15.98 kB / 497.7 MB, free: 3.727 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.0001228/0.1356, allocations: 125.7 kB / 497.8 MB, free: 3.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.1356, allocations: 7.906 kB / 497.9 MB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.1369, allocations: 0.5719 MB / 498.4 MB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.1369, allocations: 4 kB / 498.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1369, allocations: 0 / 498.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1369, allocations: 0 / 498.4 MB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/0.139, allocations: 0.9554 MB / 499.4 MB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.139, allocations: 4 kB / 499.4 MB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.1392, allocations: 71.94 kB / 499.5 MB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1393, allocations: 4 kB / 499.5 MB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.1393, allocations: 24.42 kB / 499.5 MB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.1393, allocations: 3.938 kB / 499.5 MB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1393, allocations: 8 kB / 499.5 MB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008773/0.1402, allocations: 488.3 kB / 500 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.753e-05/0.1402, allocations: 88.95 kB / 0.4883 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.485e-05/0.1403, allocations: 8 kB / 0.4883 GB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.1405, allocations: 27.97 kB / 0.4884 GB, free: 1.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.721e-05/0.1405, allocations: 15.98 kB / 0.4884 GB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.1406, allocations: 15.98 kB / 0.4884 GB, free: 1.172 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.885e-05/0.1406, allocations: 79.28 kB / 0.4885 GB, free: 1.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1406, allocations: 0 / 0.4885 GB, free: 1.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008326/0.1415, allocations: 324 kB / 0.4888 GB, free: 0.7773 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.001376/0.1429, allocations: 250.9 kB / 0.489 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007898/0.1437, allocations: 367.3 kB / 0.4894 GB, free: 172 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1437, allocations: 4 kB / 0.4894 GB, free: 168 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003348/0.144, allocations: 164.2 kB / 0.4895 GB, free: 4 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.145/0.2891, allocations: 7.891 kB / 0.4895 GB, free: 42.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.2904, allocations: 0.4946 MB / 0.49 GB, free: 42.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.942e-05/0.2905, allocations: 0.698 MB / 0.4907 GB, free: 41.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.2907, allocations: 50 kB / 0.4908 GB, free: 41.84 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.2907, allocations: 0 / 0.4908 GB, free: 41.84 MB / 378.7 MB Notification: Performance of Templates: time 0.009696/0.3004, allocations: 6.544 MB / 0.4972 GB, free: 41.46 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