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/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 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 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) 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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_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.001325/0.001325, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001449/0.001449, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2183/0.2183, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 64.97 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1072, allocations: 60.81 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001665/0.1089, allocations: 0.5345 MB / 469.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006398/0.1095, allocations: 373.2 kB / 470.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.551e-05/0.1096, allocations: 0 / 470.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.1096, allocations: 3.938 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.81e-05/0.1096, allocations: 3.938 kB / 470.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003723/0.11, allocations: 103.7 kB / 470.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.743e-05/0.1101, allocations: 23.97 kB / 470.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.241e-05/0.1101, allocations: 11.98 kB / 470.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.994e-05/0.1102, allocations: 7.938 kB / 470.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.401e-05/0.1102, allocations: 15.92 kB / 470.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1102, allocations: 4 kB / 470.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1104, allocations: 119.9 kB / 470.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.1105, allocations: 11.94 kB / 470.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.1105, allocations: 15.92 kB / 470.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.1107, allocations: 99.95 kB / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1107, allocations: 0 / 470.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1107, allocations: 4 kB / 470.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.1107, allocations: 0 / 470.7 MB, free: 12.94 MB / 350.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.0003786/0.1111, allocations: 359.5 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.1111, allocations: 15.97 kB / 471 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3e-05/0.1111, allocations: 30.75 kB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.1112, allocations: 8.844 kB / 471.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.975e-05/0.1113, allocations: 172.3 kB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.1113, allocations: 8.375 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.1113, allocations: 384 / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.1115, allocations: 58.23 kB / 471.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1115, allocations: 7.875 kB / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.346e-06/0.1115, allocations: 0 / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.1115, allocations: 0 / 471.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.521e-05/0.1116, allocations: 27.98 kB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.1117, allocations: 173.6 kB / 471.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/0.1119, allocations: 58.59 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.275e-05/0.112, allocations: 24.84 kB / 471.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.1122, allocations: 109.1 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.851e-05/0.1123, allocations: 34.56 kB / 471.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.1123, allocations: 0 / 471.7 MB, free: 11.68 MB / 350.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.04282/0.1551, allocations: 2.576 MB / 474.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.1552, allocations: 59.41 kB / 474.4 MB, free: 9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.497e-05/0.1553, allocations: 105.8 kB / 474.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.1553, allocations: 25.7 kB / 474.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.1553, allocations: 84.14 kB / 474.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.398e-05/0.1554, allocations: 63.09 kB / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.1556, allocations: 53.69 kB / 474.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1557, allocations: 326.8 kB / 475 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003791/0.1561, allocations: 175.9 kB / 475.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.1564, allocations: 175.9 kB / 475.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.1575, allocations: 418.9 kB / 475.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1575, allocations: 0 / 475.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001045/0.1585, allocations: 461.3 kB / 476.2 MB, free: 7.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.1586, allocations: 9.875 kB / 476.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1586, allocations: 0 / 476.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1586, allocations: 4 kB / 476.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.159, allocations: 67.94 kB / 476.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.159, allocations: 3.938 kB / 476.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.1593, allocations: 19.97 kB / 476.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.1593, allocations: 19.98 kB / 476.3 MB, free: 6.988 MB / 350.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.0001383/0.1594, allocations: 121.8 kB / 476.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.525e-05/0.1595, allocations: 7.906 kB / 476.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001322/0.1608, allocations: 0.5433 MB / 477 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1608, allocations: 3.938 kB / 477 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1609, allocations: 0 / 477 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1609, allocations: 7.984 kB / 477 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.163, allocations: 0.8892 MB / 477.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1631, allocations: 8.031 kB / 477.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.1633, allocations: 63.89 kB / 478 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-06/0.1634, allocations: 4.25 kB / 478 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.1634, allocations: 16.45 kB / 478 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1634, allocations: 4 kB / 478 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1634, allocations: 4 kB / 478 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009135/0.1643, allocations: 468.2 kB / 478.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.1644, allocations: 93 kB / 478.6 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.1645, allocations: 7.938 kB / 478.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.1647, allocations: 19.98 kB / 478.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.259e-05/0.1647, allocations: 7.984 kB / 478.6 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.1647, allocations: 23.98 kB / 478.6 MB, free: 4.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.808e-05/0.1648, allocations: 83.28 kB / 478.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1648, allocations: 0 / 478.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009009/0.1657, allocations: 319.9 kB / 479 MB, free: 4.184 MB / 350.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.002518/0.1682, allocations: 1.108 MB / 480.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008324/0.1691, allocations: 350.1 kB / 480.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1691, allocations: 0 / 480.5 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003513/0.1694, allocations: 156.1 kB / 480.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.1697, allocations: 8 kB / 480.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001784/0.1715, allocations: 0.4959 MB / 481.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.1718, allocations: 0.6965 MB / 481.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003689/0.1722, allocations: 96.88 kB / 481.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.1724, allocations: 59.41 kB / 482 MB, free: 1.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1724, allocations: 0 / 482 MB, free: 1.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04201/0.2144, allocations: 18.91 MB / 0.4891 GB, free: 14.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.63, allocations: 11.77 kB / 0.4891 GB, free: 14.29 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches