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.001305/0.001304, allocations: 103.9 kB / 16.41 MB, free: 6.449 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.001259/0.001259, allocations: 188.1 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.386/1.386, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2124/0.2124, allocations: 43.52 MB / 314.1 MB, free: 460 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.001977/0.001977, allocations: 68.36 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1046, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001638/0.1063, allocations: 0.5298 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.107, allocations: 381.4 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.783e-05/0.1071, allocations: 3.938 kB / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.29e-05/0.1071, allocations: 0 / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.262e-05/0.1071, allocations: 3.938 kB / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.1075, allocations: 107.6 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.635e-05/0.1076, allocations: 19.98 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.493e-05/0.1077, allocations: 4 kB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.529e-05/0.1077, allocations: 11.92 kB / 0.4884 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.787e-05/0.1078, allocations: 23.91 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.1078, allocations: 7.938 kB / 0.4884 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.108, allocations: 111.9 kB / 0.4886 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.1081, allocations: 15.92 kB / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.395e-05/0.1081, allocations: 11.94 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.1083, allocations: 87.69 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.1083, allocations: 8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1084, allocations: 0 / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.884e-06/0.1084, 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.0004551/0.1088, allocations: 371 kB / 0.489 GB, free: 10.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1089, allocations: 15.89 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.433e-05/0.1089, allocations: 42.73 kB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.109, allocations: 4.938 kB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.1091, allocations: 168.3 kB / 0.4892 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.1091, allocations: 4.375 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.1091, allocations: 4.375 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.1093, allocations: 62.11 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.1093, allocations: 3.938 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.1093, allocations: 4 kB / 0.4893 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1093, allocations: 4 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.694e-05/0.1094, allocations: 23.98 kB / 0.4893 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002014/0.1096, allocations: 173.6 kB / 0.4895 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.1098, allocations: 54.59 kB / 0.4896 GB, free: 9.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.193e-05/0.1099, allocations: 28.84 kB / 0.4896 GB, free: 9.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002572/0.1102, allocations: 109.1 kB / 0.4897 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.1102, allocations: 34.55 kB / 0.4897 GB, free: 9.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1102, allocations: 0 / 0.4897 GB, free: 9.719 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.04145/0.1517, allocations: 2.59 MB / 0.4923 GB, free: 7.098 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.1518, allocations: 51.41 kB / 0.4923 GB, free: 7.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.1519, allocations: 101.9 kB / 0.4924 GB, free: 6.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.1519, allocations: 29.7 kB / 0.4924 GB, free: 6.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.272e-05/0.152, allocations: 84.12 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.134e-05/0.1521, allocations: 67.44 kB / 0.4926 GB, free: 6.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.1522, allocations: 57.69 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1524, allocations: 322.8 kB / 0.4929 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.1528, allocations: 171.9 kB / 0.4931 GB, free: 6.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.1532, allocations: 187.8 kB / 0.4933 GB, free: 6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.1543, allocations: 412.9 kB / 0.4937 GB, free: 5.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1543, allocations: 0 / 0.4937 GB, free: 5.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00107/0.1554, allocations: 465 kB / 0.4941 GB, free: 5.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.1554, allocations: 8 kB / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.1554, allocations: 0 / 0.4941 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1554, allocations: 3.984 kB / 0.4941 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003706/0.1558, allocations: 71.88 kB / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.1558, allocations: 0 / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.156, allocations: 23.98 kB / 0.4942 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.734e-05/0.1561, 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.0001413/0.1562, allocations: 129.7 kB / 0.4944 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.03e-05/0.1563, allocations: 11.94 kB / 0.4944 GB, free: 4.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001305/0.1576, allocations: 0.5368 MB / 0.4949 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1576, allocations: 4 kB / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.1576, allocations: 0 / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1576, allocations: 0 / 0.4949 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/0.1597, allocations: 0.8814 MB / 0.4958 GB, free: 3.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.1598, allocations: 4 kB / 0.4958 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.16, allocations: 71.81 kB / 0.4958 GB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.1601, allocations: 4 kB / 0.4958 GB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.551e-05/0.1601, allocations: 19.98 kB / 0.4959 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1601, allocations: 0 / 0.4959 GB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.1601, allocations: 4 kB / 0.4959 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009547/0.1611, allocations: 468.5 kB / 0.4963 GB, free: 2.766 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.1612, allocations: 85.53 kB / 0.4964 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.1612, allocations: 8 kB / 0.4964 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.1614, allocations: 19.97 kB / 0.4964 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.993e-05/0.1614, allocations: 19.98 kB / 0.4964 GB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.222e-05/0.1615, allocations: 15.98 kB / 0.4965 GB, free: 2.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.413e-05/0.1615, allocations: 87.22 kB / 0.4965 GB, free: 2.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.1616, allocations: 0 / 0.4965 GB, free: 2.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009245/0.1625, allocations: 327.5 kB / 0.4968 GB, free: 2.195 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.002471/0.165, allocations: 1.119 MB / 0.4979 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008514/0.1658, allocations: 347 kB / 0.4983 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/0.1658, allocations: 4 kB / 0.4983 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003554/0.1662, allocations: 147.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.0002675/0.1665, 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.001678/0.1682, allocations: 0.4921 MB / 0.4989 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1685, allocations: 0.6926 MB / 0.4996 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002837/0.1688, allocations: 92.89 kB / 0.4997 GB, free: 15.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.169, allocations: 63.39 kB / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.169, allocations: 0 / 0.4997 GB, free: 15.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04555/0.2146, allocations: 18.95 MB / 0.5182 GB, free: 12.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.873/8.087, allocations: 8.797 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 & 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