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.001164/0.001164, allocations: 105.8 kB / 16.4 MB, free: 6.508 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.001277/0.001277, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.366/1.366, 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.201/0.201, allocations: 43.52 MB / 314.1 MB, free: 452 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.001633/0.001633, allocations: 66.03 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1088, 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.001608/0.1105, allocations: 0.5454 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006652/0.1112, allocations: 373.4 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.1112, allocations: 7.938 kB / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.569e-05/0.1113, allocations: 0 / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.435e-05/0.1113, allocations: 7.875 kB / 0.4883 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.1117, allocations: 103.6 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.508e-05/0.1118, allocations: 19.98 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.748e-05/0.1118, allocations: 4 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.645e-05/0.1119, allocations: 19.92 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.367e-05/0.1119, allocations: 19.91 kB / 0.4885 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.246e-05/0.112, allocations: 0 / 0.4885 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.1122, allocations: 115.9 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.583e-05/0.1122, allocations: 4 kB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.23e-05/0.1122, allocations: 19.86 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001744/0.1124, allocations: 95.81 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1124, allocations: 0 / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1124, allocations: 0 / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1124, allocations: 0 / 0.4887 GB, free: 11 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.0004279/0.1129, allocations: 371.3 kB / 0.489 GB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.1129, allocations: 11.89 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.113, allocations: 42.73 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.618e-05/0.113, allocations: 0.9375 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1131, allocations: 168.3 kB / 0.4892 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.1131, allocations: 384 / 0.4892 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.1132, allocations: 8.375 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.1133, allocations: 58.11 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1133, allocations: 3.938 kB / 0.4893 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1133, allocations: 12 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1133, allocations: 0 / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.238e-05/0.1134, allocations: 23.98 kB / 0.4893 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001702/0.1136, allocations: 173.6 kB / 0.4895 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.1138, allocations: 58.59 kB / 0.4896 GB, free: 9.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.631e-05/0.1139, allocations: 28.84 kB / 0.4896 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002516/0.1141, allocations: 105.1 kB / 0.4897 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1141, allocations: 34.55 kB / 0.4897 GB, free: 9.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.143e-06/0.1142, allocations: 0 / 0.4897 GB, free: 9.73 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.04225/0.1564, allocations: 2.58 MB / 0.4922 GB, free: 7.109 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1565, allocations: 55.41 kB / 0.4923 GB, free: 7.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.887e-05/0.1566, allocations: 101.9 kB / 0.4924 GB, free: 6.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.1566, allocations: 33.7 kB / 0.4924 GB, free: 6.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.84e-05/0.1567, allocations: 88.12 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.686e-05/0.1567, allocations: 63.09 kB / 0.4926 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.1569, allocations: 57.69 kB / 0.4926 GB, free: 6.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.157, allocations: 322.8 kB / 0.4929 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.1573, allocations: 167.9 kB / 0.4931 GB, free: 6.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/0.1577, allocations: 179.9 kB / 0.4933 GB, free: 6.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009697/0.1587, allocations: 420.6 kB / 0.4937 GB, free: 5.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1587, allocations: 0 / 0.4937 GB, free: 5.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009486/0.1596, allocations: 460.7 kB / 0.4941 GB, free: 5.148 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.1597, allocations: 4 kB / 0.4941 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1597, allocations: 0 / 0.4941 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.1597, allocations: 4 kB / 0.4941 GB, free: 5.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.1601, allocations: 67.88 kB / 0.4942 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1601, allocations: 8 kB / 0.4942 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.1603, allocations: 15.98 kB / 0.4942 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.1604, allocations: 15.98 kB / 0.4942 GB, free: 5.035 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.0001153/0.1605, allocations: 125.7 kB / 0.4943 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.1605, allocations: 11.89 kB / 0.4943 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.1617, allocations: 0.5407 MB / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1617, allocations: 0 / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1617, allocations: 0 / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.716e-06/0.1617, allocations: 0 / 0.4949 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.1638, allocations: 0.893 MB / 0.4957 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1638, allocations: 0 / 0.4957 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.1641, allocations: 71.88 kB / 0.4958 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.1641, allocations: 4 kB / 0.4958 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.1642, allocations: 19.92 kB / 0.4958 GB, free: 3.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1642, allocations: 4 kB / 0.4958 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1642, allocations: 192 / 0.4958 GB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.165, allocations: 472.2 kB / 0.4963 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.1651, allocations: 85.48 kB / 0.4964 GB, free: 2.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.1651, allocations: 11.98 kB / 0.4964 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.1653, allocations: 16.22 kB / 0.4964 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.1654, allocations: 19.98 kB / 0.4964 GB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.1654, allocations: 23.98 kB / 0.4964 GB, free: 2.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.409e-05/0.1654, allocations: 87.22 kB / 0.4965 GB, free: 2.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1654, allocations: 0 / 0.4965 GB, free: 2.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008177/0.1663, allocations: 315.9 kB / 0.4968 GB, free: 2.211 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.00236/0.1686, allocations: 1.119 MB / 0.4979 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007344/0.1694, allocations: 335.7 kB / 0.4982 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1694, allocations: 8 kB / 0.4982 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.1697, allocations: 143.8 kB / 0.4984 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002784/0.17, allocations: 11.28 kB / 0.4984 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1717, allocations: 0.4964 MB / 0.4989 GB, free: 12 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.172, allocations: 0.6926 MB / 0.4996 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002535/0.1722, allocations: 88.89 kB / 0.4996 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.1724, allocations: 63.39 kB / 0.4997 GB, free: 15.13 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1724, allocations: 0 / 0.4997 GB, free: 15.13 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03759/0.21, allocations: 19.1 MB / 0.5184 GB, free: 11.96 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.219/7.429, allocations: 4.812 kB / 0.5184 GB, free: 11.96 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