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.001084/0.001085, allocations: 100.2 kB / 16.4 MB, free: 6.496 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.001167/0.001167, allocations: 192.1 kB / 17.34 MB, free: 5.77 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.37/1.37, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.2043/0.2043, allocations: 43.52 MB / 314.1 MB, free: 468 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.001703/0.001703, allocations: 67.91 kB / 441.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1174, allocations: 57.79 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001957/0.1194, allocations: 0.5263 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008354/0.1202, allocations: 385.4 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.619e-05/0.1203, allocations: 3.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.1204, allocations: 3.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.884e-05/0.1204, allocations: 0 / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.121, allocations: 107.6 kB / 0.4884 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.738e-05/0.1211, allocations: 27.91 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.745e-05/0.1212, allocations: 0 / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.114e-05/0.1212, allocations: 15.94 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.029e-05/0.1213, allocations: 19.92 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.916e-05/0.1214, allocations: 0 / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000322/0.1217, allocations: 119.9 kB / 0.4886 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.288e-05/0.1217, allocations: 3.938 kB / 0.4886 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.1218, allocations: 15.92 kB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.122, allocations: 103.8 kB / 0.4887 GB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.122, allocations: 0 / 0.4887 GB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1221, allocations: 0 / 0.4887 GB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.1221, allocations: 0 / 0.4887 GB, free: 11.01 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.0005511/0.1226, allocations: 367.3 kB / 0.489 GB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.1227, allocations: 11.89 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.1228, allocations: 38.75 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/0.1228, allocations: 4.938 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.1229, allocations: 176.2 kB / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.123, allocations: 384 / 0.4892 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.123, allocations: 8.375 kB / 0.4893 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.1231, allocations: 50.23 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.1232, allocations: 7.938 kB / 0.4893 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1232, allocations: 4 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.1232, allocations: 4 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.766e-05/0.1233, allocations: 27.92 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.1235, allocations: 169.6 kB / 0.4895 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.1237, allocations: 54.56 kB / 0.4896 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.07e-05/0.1238, allocations: 28.84 kB / 0.4896 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002634/0.1241, allocations: 109.1 kB / 0.4897 GB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.1241, allocations: 30.84 kB / 0.4897 GB, free: 9.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.05e-05/0.1241, allocations: 0 / 0.4897 GB, free: 9.75 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.04109/0.1652, allocations: 2.588 MB / 0.4922 GB, free: 7.129 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.1653, allocations: 59.34 kB / 0.4923 GB, free: 7.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.953e-05/0.1654, allocations: 101.8 kB / 0.4924 GB, free: 6.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.1654, allocations: 33.7 kB / 0.4924 GB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.1654, allocations: 80.14 kB / 0.4925 GB, free: 6.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.605e-05/0.1655, allocations: 67.09 kB / 0.4926 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.1657, allocations: 57.69 kB / 0.4926 GB, free: 6.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1658, allocations: 322.8 kB / 0.4929 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003689/0.1662, allocations: 171.9 kB / 0.4931 GB, free: 6.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/0.1665, allocations: 175.9 kB / 0.4933 GB, free: 6.035 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1676, allocations: 416.6 kB / 0.4937 GB, free: 5.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1676, allocations: 0 / 0.4937 GB, free: 5.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001049/0.1686, allocations: 464.9 kB / 0.4941 GB, free: 5.168 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.1687, allocations: 4 kB / 0.4941 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1687, allocations: 256 / 0.4941 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.1687, allocations: 4 kB / 0.4941 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003567/0.1691, allocations: 75.94 kB / 0.4942 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.1691, allocations: 0 / 0.4942 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.1693, allocations: 19.97 kB / 0.4942 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.1693, allocations: 19.98 kB / 0.4942 GB, free: 5.047 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.000123/0.1695, allocations: 125.7 kB / 0.4943 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.1695, allocations: 7.906 kB / 0.4943 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.1707, allocations: 0.5369 MB / 0.4949 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1708, allocations: 0 / 0.4949 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1708, allocations: 0 / 0.4949 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1708, allocations: 7.984 kB / 0.4949 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.173, allocations: 0.8929 MB / 0.4958 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.173, allocations: 0 / 0.4958 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002909/0.1733, allocations: 67.89 kB / 0.4958 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.1733, allocations: 4 kB / 0.4958 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.509e-05/0.1733, allocations: 16.45 kB / 0.4958 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.1733, allocations: 4 kB / 0.4958 GB, free: 3.293 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.1734, allocations: 3.938 kB / 0.4958 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009665/0.1743, allocations: 472.5 kB / 0.4963 GB, free: 2.793 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.766e-05/0.1744, allocations: 89 kB / 0.4964 GB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.1745, allocations: 11.94 kB / 0.4964 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.1747, allocations: 11.98 kB / 0.4964 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.1747, allocations: 23.92 kB / 0.4964 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.444e-05/0.1748, allocations: 19.98 kB / 0.4964 GB, free: 2.621 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.846e-05/0.1748, allocations: 83.28 kB / 0.4965 GB, free: 2.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1748, allocations: 0 / 0.4965 GB, free: 2.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009989/0.1758, allocations: 315.9 kB / 0.4968 GB, free: 2.23 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.002527/0.1784, allocations: 1.115 MB / 0.4979 GB, free: 1.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008651/0.1792, allocations: 339.7 kB / 0.4982 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1793, allocations: 4 kB / 0.4982 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003413/0.1796, allocations: 147.8 kB / 0.4984 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1799, allocations: 12 kB / 0.4984 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.1817, allocations: 0.4925 MB / 0.4989 GB, free: 32 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.182, allocations: 0.6926 MB / 0.4996 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002772/0.1823, allocations: 97.06 kB / 0.4996 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.1825, allocations: 55.41 kB / 0.4997 GB, free: 15.15 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1825, allocations: 0 / 0.4997 GB, free: 15.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.225, allocations: 19.1 MB / 0.5183 GB, free: 11.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.546/7.771, allocations: 8.75 kB / 0.5184 GB, free: 11.97 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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