Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 107.3 kB / 16.4 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 185.5 kB / 17.33 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2024/0.2024, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 65.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.0956, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001725/0.09738, allocations: 0.5494 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006367/0.09804, allocations: 373.4 kB / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.09808, allocations: 0 / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.09812, allocations: 7.875 kB / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.924e-05/0.09816, allocations: 0 / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.09857, allocations: 107.6 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.542e-05/0.09863, allocations: 27.91 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.834e-05/0.09868, allocations: 4 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.512e-05/0.09871, allocations: 19.92 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.8e-05/0.09877, allocations: 11.92 kB / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.09879, allocations: 0 / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.099, allocations: 115.9 kB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.067e-05/0.09903, allocations: 15.92 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.09906, allocations: 11.94 kB / 0.4886 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.09925, allocations: 95.67 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.09927, allocations: 0 / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.09927, allocations: 0 / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.09929, allocations: 4 kB / 0.4887 GB, free: 10.98 MB / 382.1 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.00043/0.09973, allocations: 371 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.09978, allocations: 15.89 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.09981, allocations: 34.75 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.09985, allocations: 4.938 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.09997, allocations: 172.3 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.09999, allocations: 4.375 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.554e-05/0.1, allocations: 8.312 kB / 0.4893 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001285/0.1002, allocations: 54.17 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1002, allocations: 11.94 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.1002, allocations: 4 kB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1002, allocations: 0 / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.325e-05/0.1003, allocations: 23.98 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.1005, allocations: 165.7 kB / 0.4895 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.1007, allocations: 58.58 kB / 0.4896 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.699e-05/0.1007, allocations: 28.84 kB / 0.4896 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002366/0.101, allocations: 105.1 kB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.101, allocations: 34.56 kB / 0.4897 GB, free: 9.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.101, allocations: 0 / 0.4897 GB, free: 9.719 MB / 382.1 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.04054/0.1415, allocations: 2.58 MB / 0.4922 GB, free: 7.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.1416, allocations: 55.39 kB / 0.4923 GB, free: 7.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.427e-05/0.1417, allocations: 101.9 kB / 0.4924 GB, free: 6.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.1418, allocations: 29.7 kB / 0.4924 GB, free: 6.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.1418, allocations: 84.14 kB / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.081e-05/0.1419, allocations: 67.42 kB / 0.4926 GB, free: 6.734 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.142, allocations: 57.69 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1422, allocations: 330.7 kB / 0.4929 GB, free: 6.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.1425, allocations: 163.9 kB / 0.4931 GB, free: 6.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003789/0.1429, allocations: 187.8 kB / 0.4933 GB, free: 5.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009835/0.1439, allocations: 404.7 kB / 0.4937 GB, free: 5.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1439, allocations: 0 / 0.4937 GB, free: 5.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009916/0.1449, allocations: 468.6 kB / 0.4941 GB, free: 5.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.145, allocations: 7.75 kB / 0.4941 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.145, allocations: 4 kB / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.145, allocations: 0 / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.1454, allocations: 79.88 kB / 0.4942 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.1454, allocations: 0 / 0.4942 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000197/0.1456, allocations: 11.98 kB / 0.4942 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.1456, allocations: 19.98 kB / 0.4942 GB, free: 5.02 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001206/0.1457, allocations: 125.7 kB / 0.4943 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.1458, allocations: 7.953 kB / 0.4944 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.147, allocations: 0.5446 MB / 0.4949 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.147, allocations: 0 / 0.4949 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.147, allocations: 4 kB / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.147, allocations: 0 / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.1491, allocations: 0.8814 MB / 0.4958 GB, free: 3.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.1491, allocations: 4 kB / 0.4958 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.1494, allocations: 71.86 kB / 0.4958 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.1494, allocations: 7.938 kB / 0.4958 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.1495, allocations: 19.98 kB / 0.4958 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.1495, allocations: 448 / 0.4959 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.1495, allocations: 12.47 kB / 0.4959 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009798/0.1505, allocations: 464.4 kB / 0.4963 GB, free: 2.762 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.1505, allocations: 85.06 kB / 0.4964 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.588e-05/0.1506, allocations: 8 kB / 0.4964 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.1508, allocations: 19.97 kB / 0.4964 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.308e-05/0.1508, allocations: 23.86 kB / 0.4964 GB, free: 2.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.1509, allocations: 19.98 kB / 0.4965 GB, free: 2.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.842e-05/0.1509, allocations: 83.28 kB / 0.4965 GB, free: 2.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1509, allocations: 0 / 0.4965 GB, free: 2.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008163/0.1517, allocations: 319.5 kB / 0.4968 GB, free: 2.195 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002385/0.1541, allocations: 1.122 MB / 0.4979 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007833/0.1549, allocations: 351.7 kB / 0.4983 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1549, allocations: 0 / 0.4983 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003392/0.1553, allocations: 147.8 kB / 0.4984 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.1556, allocations: 8 kB / 0.4984 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1573, allocations: 0.4921 MB / 0.4989 GB, free: 15.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.1576, allocations: 0.6887 MB / 0.4996 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002856/0.1579, allocations: 92.88 kB / 0.4997 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002003/0.1581, allocations: 63.39 kB / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1581, allocations: 0 / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.1966, allocations: 18.95 MB / 0.5182 GB, free: 12.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.283/7.48, allocations: 16.69 kB / 0.5182 GB, free: 12.07 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches