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.001157/0.001157, allocations: 111 kB / 17.08 MB, free: 5.82 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.001059/0.001059, allocations: 197.3 kB / 18.01 MB, free: 4.965 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.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2031/0.2031, allocations: 43.52 MB / 314.8 MB, free: 464 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.001482/0.001482, allocations: 63.91 kB / 442.5 MB, free: 5.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1155, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001776/0.1173, allocations: 0.5443 MB / 0.4891 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007018/0.118, allocations: 363.3 kB / 0.4894 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.183e-05/0.1181, allocations: 0 / 0.4894 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.147e-05/0.1181, allocations: 7.875 kB / 0.4894 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.427e-05/0.1182, allocations: 7.938 kB / 0.4894 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005156/0.1187, allocations: 111.6 kB / 0.4895 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.122e-05/0.1187, allocations: 23.97 kB / 0.4896 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.497e-05/0.1188, allocations: 0 / 0.4896 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.039e-05/0.1188, allocations: 19.92 kB / 0.4896 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.945e-05/0.1189, allocations: 15.92 kB / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.1189, allocations: 0 / 0.4896 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000247/0.1192, allocations: 115.9 kB / 0.4897 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.957e-05/0.1192, allocations: 15.92 kB / 0.4897 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.654e-05/0.1193, allocations: 11.94 kB / 0.4897 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.1194, allocations: 95.8 kB / 0.4898 GB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1195, allocations: 0 / 0.4898 GB, free: 10.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1195, allocations: 0 / 0.4898 GB, free: 10.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1195, allocations: 4 kB / 0.4898 GB, free: 10.51 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.0004192/0.1199, allocations: 363.2 kB / 0.4902 GB, free: 10.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1199, allocations: 15.97 kB / 0.4902 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.12, allocations: 0.9375 kB / 0.4902 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1202, allocations: 180.2 kB / 0.4904 GB, free: 9.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/0.1202, allocations: 4.375 kB / 0.4904 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.1202, allocations: 4.375 kB / 0.4904 GB, free: 9.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.1203, allocations: 50.25 kB / 0.4904 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.1203, allocations: 192 / 0.4904 GB, free: 9.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.1204, allocations: 3.938 kB / 0.4904 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.1204, allocations: 4 kB / 0.4904 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.86e-05/0.1204, allocations: 35.91 kB / 0.4905 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.1206, allocations: 165.6 kB / 0.4906 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000212/0.1209, allocations: 62.55 kB / 0.4907 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.768e-05/0.1209, allocations: 20.86 kB / 0.4907 GB, free: 9.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.1212, allocations: 109.1 kB / 0.4908 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.1212, allocations: 34.78 kB / 0.4908 GB, free: 9.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.1212, allocations: 0 / 0.4908 GB, free: 9.293 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.0389/0.1602, allocations: 2.59 MB / 0.4934 GB, free: 6.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/0.1602, allocations: 59.41 kB / 0.4934 GB, free: 6.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.031e-05/0.1603, allocations: 105.8 kB / 0.4935 GB, free: 6.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.1604, allocations: 25.7 kB / 0.4935 GB, free: 6.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.616e-05/0.1604, allocations: 88.14 kB / 0.4936 GB, free: 6.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.165e-05/0.1605, allocations: 59.11 kB / 0.4937 GB, free: 6.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1606, allocations: 57.67 kB / 0.4937 GB, free: 6.242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1607, allocations: 318.8 kB / 0.494 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.1611, allocations: 179.9 kB / 0.4942 GB, free: 5.746 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.1615, allocations: 175.9 kB / 0.4944 GB, free: 5.574 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.1625, allocations: 412.7 kB / 0.4948 GB, free: 5.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1625, allocations: 0 / 0.4948 GB, free: 5.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001059/0.1636, allocations: 464.8 kB / 0.4952 GB, free: 4.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1636, allocations: 8 kB / 0.4952 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.1636, allocations: 0 / 0.4952 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1637, allocations: 0 / 0.4952 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.164, allocations: 67.94 kB / 0.4953 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1641, allocations: 7.984 kB / 0.4953 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.1643, allocations: 15.98 kB / 0.4953 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.1643, allocations: 15.98 kB / 0.4953 GB, free: 4.598 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.0001291/0.1645, allocations: 133.7 kB / 0.4955 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.1645, allocations: 7.906 kB / 0.4955 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.1658, allocations: 0.5368 MB / 0.496 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.1658, allocations: 0 / 0.496 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1658, allocations: 0 / 0.496 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1658, allocations: 0 / 0.496 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.168, allocations: 0.8968 MB / 0.4969 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.168, allocations: 0 / 0.4969 GB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.1683, allocations: 72.59 kB / 0.4969 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.1684, allocations: 0 / 0.4969 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/0.1684, allocations: 23.92 kB / 0.497 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.1684, allocations: 4 kB / 0.497 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1684, allocations: 3.938 kB / 0.497 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.1693, allocations: 472.4 kB / 0.4974 GB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.481e-05/0.1694, allocations: 89.02 kB / 0.4975 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.1695, allocations: 4 kB / 0.4975 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.1697, allocations: 20.22 kB / 0.4975 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.312e-05/0.1697, allocations: 19.91 kB / 0.4975 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.179e-05/0.1698, allocations: 20 kB / 0.4976 GB, free: 2.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.538e-05/0.1698, allocations: 83.27 kB / 0.4976 GB, free: 2.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1698, allocations: 0 / 0.4976 GB, free: 2.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009372/0.1708, allocations: 320 kB / 0.4979 GB, free: 1.77 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.001387/0.1722, allocations: 235 kB / 0.4982 GB, free: 1.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008189/0.173, allocations: 343.1 kB / 0.4985 GB, free: 1.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.173, allocations: 4 kB / 0.4985 GB, free: 1.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003555/0.1734, allocations: 147.8 kB / 0.4986 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.1737, allocations: 8 kB / 0.4986 GB, free: 1.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.1749, allocations: 440.6 kB / 0.4991 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.1752, allocations: 0.6965 MB / 0.4997 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002018/0.1755, allocations: 47.41 kB / 0.4998 GB, free: 15.79 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1755, allocations: 0 / 0.4998 GB, free: 15.79 MB / 398.1 MB Notification: Performance of Templates: time 0.01058/0.1861, allocations: 6.55 MB / 0.5062 GB, free: 9.227 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