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: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 119.2 kB / 17.09 MB, free: 5.965 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.001154/0.001154, allocations: 197.2 kB / 18.02 MB, free: 5.047 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.35/1.35, allocations: 205.1 MB / 223.9 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.2122/0.2122, allocations: 43.52 MB / 314.8 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.001522/0.001522, allocations: 69.47 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1036, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001773/0.1054, allocations: 0.5485 MB / 0.4891 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007436/0.1062, allocations: 363.2 kB / 0.4894 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.646e-05/0.1062, allocations: 0 / 0.4894 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.882e-05/0.1063, allocations: 4 kB / 0.4894 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.522e-05/0.1063, allocations: 7.875 kB / 0.4894 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004865/0.1068, allocations: 115.6 kB / 0.4895 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.913e-05/0.1069, allocations: 19.98 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.1069, allocations: 4 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.674e-05/0.107, allocations: 11.94 kB / 0.4896 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.085e-05/0.107, allocations: 19.91 kB / 0.4896 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.1071, allocations: 0 / 0.4896 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.1073, allocations: 115.9 kB / 0.4897 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.1074, allocations: 11.92 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.805e-05/0.1074, allocations: 23.86 kB / 0.4897 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.1076, allocations: 95.81 kB / 0.4898 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1076, allocations: 0 / 0.4898 GB, free: 10.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1076, allocations: 0 / 0.4898 GB, free: 10.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1076, allocations: 0 / 0.4898 GB, free: 10.48 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.0004746/0.1081, allocations: 367.2 kB / 0.4902 GB, free: 10.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1082, allocations: 8.031 kB / 0.4902 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.242e-05/0.1082, allocations: 4.938 kB / 0.4902 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.1084, allocations: 168.2 kB / 0.4903 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.1084, allocations: 12.38 kB / 0.4904 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.1084, allocations: 4.375 kB / 0.4904 GB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.1085, allocations: 58.17 kB / 0.4904 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.1086, allocations: 192 / 0.4904 GB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1086, allocations: 3.938 kB / 0.4904 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1086, allocations: 0 / 0.4904 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.355e-05/0.1087, allocations: 23.98 kB / 0.4904 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001929/0.1089, allocations: 181.6 kB / 0.4906 GB, free: 9.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.1091, allocations: 58.59 kB / 0.4907 GB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.939e-05/0.1092, allocations: 24.84 kB / 0.4907 GB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/0.1095, allocations: 109.1 kB / 0.4908 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.1095, allocations: 34.56 kB / 0.4908 GB, free: 9.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.223e-06/0.1095, allocations: 0 / 0.4908 GB, free: 9.258 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.04335/0.1528, allocations: 2.58 MB / 0.4934 GB, free: 6.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.114e-05/0.1529, allocations: 55.41 kB / 0.4934 GB, free: 6.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.1531, allocations: 105.8 kB / 0.4935 GB, free: 6.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.1531, allocations: 25.7 kB / 0.4935 GB, free: 6.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.303e-05/0.1531, allocations: 84.14 kB / 0.4936 GB, free: 6.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.298e-05/0.1532, allocations: 63.09 kB / 0.4937 GB, free: 6.277 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1534, allocations: 53.69 kB / 0.4937 GB, free: 6.219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1535, allocations: 326.8 kB / 0.494 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/0.1539, allocations: 179.9 kB / 0.4942 GB, free: 5.715 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.1543, allocations: 167.9 kB / 0.4944 GB, free: 5.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.1553, allocations: 428 kB / 0.4948 GB, free: 5.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1553, allocations: 0 / 0.4948 GB, free: 5.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001032/0.1564, allocations: 453.4 kB / 0.4952 GB, free: 4.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.1564, allocations: 8 kB / 0.4952 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1564, allocations: 4 kB / 0.4952 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.1564, allocations: 0 / 0.4952 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000389/0.1568, allocations: 71.88 kB / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1568, allocations: 0 / 0.4953 GB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.1571, allocations: 23.97 kB / 0.4953 GB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1571, allocations: 15.98 kB / 0.4953 GB, free: 4.562 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.0001375/0.1573, allocations: 125.7 kB / 0.4954 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.519e-05/0.1573, allocations: 7.906 kB / 0.4955 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001331/0.1586, allocations: 0.5409 MB / 0.496 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1587, allocations: 4 kB / 0.496 GB, free: 3.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.1587, allocations: 4 kB / 0.496 GB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.1587, allocations: 3.984 kB / 0.496 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/0.1609, allocations: 0.8851 MB / 0.4969 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1609, allocations: 4 kB / 0.4969 GB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.1612, allocations: 72.08 kB / 0.4969 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.1612, allocations: 7.984 kB / 0.4969 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.1612, allocations: 12.47 kB / 0.4969 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.1612, allocations: 3.938 kB / 0.497 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1613, allocations: 4 kB / 0.497 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009626/0.1622, allocations: 464.2 kB / 0.4974 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.064e-05/0.1623, allocations: 93 kB / 0.4975 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.1623, allocations: 11.94 kB / 0.4975 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.1625, allocations: 19.98 kB / 0.4975 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.1626, allocations: 11.98 kB / 0.4975 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.1626, allocations: 15.98 kB / 0.4975 GB, free: 2.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.428e-05/0.1627, allocations: 83.28 kB / 0.4976 GB, free: 2.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1627, allocations: 0 / 0.4976 GB, free: 2.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009028/0.1636, allocations: 316 kB / 0.4979 GB, free: 1.75 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.001475/0.1651, allocations: 239 kB / 0.4982 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008918/0.166, allocations: 347.8 kB / 0.4985 GB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.166, allocations: 4 kB / 0.4985 GB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003565/0.1664, allocations: 147.8 kB / 0.4986 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.1667, allocations: 15.28 kB / 0.4986 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.168, allocations: 432.6 kB / 0.4991 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1683, allocations: 0.6965 MB / 0.4997 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.1685, allocations: 51.41 kB / 0.4998 GB, free: 15.76 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1685, allocations: 0 / 0.4998 GB, free: 15.76 MB / 398.1 MB Notification: Performance of Templates: time 0.01106/0.1796, allocations: 6.562 MB / 0.5062 GB, free: 9.188 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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