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.001158/0.001158, allocations: 103.7 kB / 16.27 MB, free: 6.41 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.001133/0.001133, allocations: 191.8 kB / 17.2 MB, free: 5.953 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.461/1.461, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2105/0.2105, allocations: 43.51 MB / 313.9 MB, free: 0.5234 MB / 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.00149/0.00149, allocations: 71.22 kB / 382.8 MB, free: 56.69 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09923, allocations: 57.79 MB / 440.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001634/0.1009, allocations: 0.5341 MB / 441.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005319/0.1015, allocations: 363.2 kB / 441.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.395e-05/0.1015, allocations: 0 / 441.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.1015, allocations: 3.938 kB / 441.5 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.02e-05/0.1016, allocations: 3.938 kB / 441.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.1019, allocations: 115.9 kB / 441.6 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.583e-05/0.1019, allocations: 31.84 kB / 441.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.256e-05/0.102, allocations: 4 kB / 441.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.903e-05/0.102, allocations: 11.94 kB / 441.7 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.374e-05/0.1021, allocations: 15.92 kB / 441.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.174e-05/0.1021, allocations: 4 kB / 441.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.1022, allocations: 119.9 kB / 441.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.1023, allocations: 3.984 kB / 441.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.1023, allocations: 19.88 kB / 441.8 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.1024, allocations: 99.8 kB / 441.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1024, allocations: 0 / 441.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1024, allocations: 0 / 441.9 MB, free: 5.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1025, allocations: 0 / 441.9 MB, free: 5.473 MB / 318.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.0003126/0.1028, allocations: 359.4 kB / 442.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1028, allocations: 11.89 kB / 442.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.43e-05/0.1028, allocations: 38.69 kB / 442.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.626e-05/0.1029, allocations: 4.938 kB / 442.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.678e-05/0.103, allocations: 172.3 kB / 442.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.103, allocations: 8.375 kB / 442.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.103, allocations: 8.312 kB / 442.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.1031, allocations: 50.25 kB / 442.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1031, allocations: 7.875 kB / 442.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.1031, allocations: 0 / 442.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1032, allocations: 0 / 442.6 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.103e-05/0.1032, allocations: 31.97 kB / 442.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.1034, allocations: 169.6 kB / 442.8 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.1035, allocations: 66.83 kB / 442.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.201e-05/0.1036, allocations: 24.8 kB / 442.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002289/0.1038, allocations: 105.1 kB / 443 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.268e-05/0.1038, allocations: 34.56 kB / 443 MB, free: 4.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.1039, allocations: 0 / 443 MB, free: 4.211 MB / 318.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.04192/0.1458, allocations: 2.588 MB / 445.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.1458, allocations: 51.41 kB / 445.6 MB, free: 1.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.173e-05/0.1459, allocations: 101.8 kB / 445.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.146, allocations: 29.7 kB / 445.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.103e-05/0.146, allocations: 80.14 kB / 445.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.489e-05/0.146, allocations: 67.05 kB / 445.9 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1462, allocations: 57.67 kB / 446 MB, free: 1.172 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.615e-05/0.1462, allocations: 322.8 kB / 446.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003247/0.1465, allocations: 179.9 kB / 446.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003153/0.1469, allocations: 171.9 kB / 446.6 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008743/0.1477, allocations: 419.7 kB / 447 MB, free: 96 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1478, allocations: 0 / 447 MB, free: 96 kB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001016/0.1488, allocations: 457.4 kB / 447.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1488, allocations: 12 kB / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.1488, allocations: 480 / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.1489, allocations: 0 / 447.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003789/0.1493, allocations: 67.94 kB / 447.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.1493, allocations: 3.938 kB / 447.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.1495, allocations: 19.97 kB / 447.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.1496, allocations: 23.92 kB / 447.6 MB, free: 15.51 MB / 334.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.0001319/0.1497, allocations: 125.7 kB / 447.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.1497, allocations: 11.89 kB / 447.7 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.151, allocations: 0.5482 MB / 448.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.151, allocations: 4 kB / 448.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.151, allocations: 0 / 448.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.151, allocations: 0 / 448.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002158/0.1532, allocations: 0.8813 MB / 449.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1532, allocations: 8.031 kB / 449.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/0.1535, allocations: 71.88 kB / 449.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.1535, allocations: 4 kB / 449.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.952e-05/0.1536, allocations: 12 kB / 449.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1536, allocations: 3.984 kB / 449.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1536, allocations: 4 kB / 449.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009387/0.1545, allocations: 464.2 kB / 449.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1546, allocations: 85.02 kB / 449.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/0.1547, allocations: 11.94 kB / 449.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.1549, allocations: 23.97 kB / 449.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.1549, allocations: 11.98 kB / 449.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.1549, allocations: 12 kB / 449.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.711e-05/0.155, allocations: 91.27 kB / 450 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.155, allocations: 0 / 450 MB, free: 13.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009185/0.1559, allocations: 315.9 kB / 450.3 MB, free: 12.71 MB / 334.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.00234/0.1583, allocations: 1.112 MB / 451.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008437/0.1591, allocations: 347.2 kB / 451.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1592, allocations: 0 / 451.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.1595, allocations: 155.9 kB / 451.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1599, allocations: 12 kB / 451.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.1617, allocations: 499.9 kB / 452.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.162, allocations: 0.7004 MB / 453.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003759/0.1624, allocations: 92.88 kB / 453.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.1626, allocations: 59.39 kB / 453.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1626, allocations: 0 / 453.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03755/0.2002, allocations: 18.91 MB / 472.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.457/7.657, allocations: 15.09 kB / 472.2 MB, free: 6.652 MB / 350.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