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.001436/0.001436, allocations: 107.8 kB / 16.41 MB, free: 6.457 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.001748/0.001748, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.396/1.396, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2115/0.2115, allocations: 43.53 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.002223/0.002223, allocations: 71.89 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1039, allocations: 57.78 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001759/0.1057, allocations: 0.5454 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006769/0.1064, allocations: 377.4 kB / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.041e-05/0.1065, allocations: 0 / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.1065, allocations: 0 / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.049e-05/0.1065, allocations: 3.938 kB / 0.4883 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000447/0.107, allocations: 111.6 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.238e-05/0.1071, allocations: 23.92 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.047e-05/0.1071, allocations: 8 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.168e-05/0.1071, allocations: 7.938 kB / 0.4884 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.666e-05/0.1072, allocations: 15.92 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.1072, allocations: 4 kB / 0.4885 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.1074, allocations: 115.9 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.883e-05/0.1075, allocations: 11.94 kB / 0.4886 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.317e-05/0.1075, allocations: 15.92 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1077, allocations: 95.67 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1077, allocations: 4 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1078, allocations: 0 / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.1078, allocations: 3.938 kB / 0.4887 GB, free: 10.99 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.0004731/0.1082, allocations: 367.1 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1083, allocations: 15.89 kB / 0.4891 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.705e-05/0.1083, allocations: 34.75 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.1084, allocations: 4.938 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.1085, allocations: 172.3 kB / 0.4893 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.1085, allocations: 4.375 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.1086, allocations: 4.375 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.1087, allocations: 58.12 kB / 0.4893 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.1087, allocations: 7.938 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.1087, allocations: 4 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1087, allocations: 0 / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.637e-05/0.1088, allocations: 27.97 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001827/0.109, allocations: 165.7 kB / 0.4895 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.1092, allocations: 58.58 kB / 0.4896 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.91e-05/0.1093, allocations: 24.86 kB / 0.4896 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002434/0.1095, allocations: 113.1 kB / 0.4897 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.1096, allocations: 30.56 kB / 0.4897 GB, free: 9.727 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.765e-06/0.1096, allocations: 3.984 kB / 0.4897 GB, free: 9.723 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.04071/0.1503, allocations: 2.582 MB / 0.4923 GB, free: 7.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.1504, allocations: 51.41 kB / 0.4923 GB, free: 7.039 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.957e-05/0.1505, allocations: 105.8 kB / 0.4924 GB, free: 6.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.1505, allocations: 29.7 kB / 0.4924 GB, free: 6.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.1506, allocations: 84.14 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.1507, allocations: 67.42 kB / 0.4926 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.1508, allocations: 61.67 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.151, allocations: 322.8 kB / 0.4929 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.1514, allocations: 176.1 kB / 0.4931 GB, free: 6.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003893/0.1518, allocations: 183.8 kB / 0.4933 GB, free: 5.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001042/0.1528, allocations: 413.2 kB / 0.4937 GB, free: 5.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1528, allocations: 0 / 0.4937 GB, free: 5.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001067/0.1539, allocations: 461 kB / 0.4941 GB, free: 5.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1539, allocations: 8 kB / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.154, allocations: 0 / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.154, allocations: 0 / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.1544, allocations: 75.88 kB / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.1544, allocations: 0 / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.1546, allocations: 23.97 kB / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.1546, allocations: 15.98 kB / 0.4942 GB, free: 5.016 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.0001294/0.1548, allocations: 129.7 kB / 0.4944 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.1548, allocations: 7.953 kB / 0.4944 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001295/0.1561, allocations: 0.5407 MB / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.1561, allocations: 4 kB / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1561, allocations: 0 / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1562, allocations: 0 / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00214/0.1583, allocations: 0.8814 MB / 0.4958 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.1583, allocations: 7.938 kB / 0.4958 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002826/0.1586, allocations: 67.88 kB / 0.4958 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.1586, allocations: 4 kB / 0.4958 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/0.1587, allocations: 16 kB / 0.4959 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.1587, allocations: 8.172 kB / 0.4959 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1587, allocations: 4 kB / 0.4959 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009659/0.1596, allocations: 464.3 kB / 0.4963 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.693e-05/0.1597, allocations: 85.53 kB / 0.4964 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.1598, allocations: 8 kB / 0.4964 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.16, allocations: 19.98 kB / 0.4964 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.292e-05/0.16, allocations: 19.97 kB / 0.4964 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.083e-05/0.16, allocations: 19.94 kB / 0.4965 GB, free: 2.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.217e-05/0.1601, allocations: 87.2 kB / 0.4965 GB, free: 2.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1601, allocations: 0 / 0.4965 GB, free: 2.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008044/0.1609, allocations: 319.5 kB / 0.4968 GB, free: 2.199 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.00252/0.1634, allocations: 1.123 MB / 0.4979 GB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00084/0.1643, allocations: 347.7 kB / 0.4983 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1643, allocations: 0 / 0.4983 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/0.1647, allocations: 151.8 kB / 0.4984 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.1649, allocations: 8 kB / 0.4984 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00168/0.1666, allocations: 499.9 kB / 0.4989 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.167, allocations: 0.6926 MB / 0.4996 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002804/0.1673, allocations: 96.88 kB / 0.4997 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.1675, allocations: 63.39 kB / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1675, allocations: 0 / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0455/0.213, allocations: 18.95 MB / 0.5182 GB, free: 12.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.661/7.874, allocations: 12.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 & /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