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.001173/0.001173, allocations: 103.9 kB / 16.4 MB, free: 6.504 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.001213/0.001213, allocations: 192.2 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.359/1.359, 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.1839/0.1839, allocations: 43.53 MB / 314.1 MB, free: 444 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.001367/0.001367, allocations: 70.03 kB / 441.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08888/0.09026, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00163/0.09192, allocations: 0.5375 MB / 0.4884 GB, free: 11.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006692/0.09261, allocations: 365.6 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.762e-05/0.09266, allocations: 0 / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.61e-05/0.09268, allocations: 11.88 kB / 0.4888 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.83e-05/0.09273, allocations: 7.938 kB / 0.4888 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003765/0.09311, allocations: 107.6 kB / 0.4889 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.419e-05/0.09318, allocations: 19.98 kB / 0.4889 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.031e-05/0.09322, allocations: 4 kB / 0.4889 GB, free: 10.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.615e-05/0.09326, allocations: 19.91 kB / 0.4889 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.054e-05/0.09331, allocations: 19.92 kB / 0.4889 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.09333, allocations: 0 / 0.4889 GB, free: 10.72 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002015/0.09353, allocations: 115.9 kB / 0.489 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.09356, allocations: 7.922 kB / 0.4891 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.163e-05/0.09359, allocations: 15.94 kB / 0.4891 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001517/0.09374, allocations: 95.81 kB / 0.4892 GB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09375, allocations: 0 / 0.4892 GB, free: 10.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.09376, allocations: 0 / 0.4892 GB, free: 10.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.09377, allocations: 0 / 0.4892 GB, free: 10.49 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.0004011/0.09417, allocations: 367.2 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.09422, allocations: 8.031 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.09425, allocations: 4.938 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.09437, allocations: 180.2 kB / 0.4897 GB, free: 9.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.09438, allocations: 8.375 kB / 0.4897 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.09441, allocations: 4.375 kB / 0.4897 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.09452, allocations: 54.19 kB / 0.4898 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.09454, allocations: 4.172 kB / 0.4898 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.09455, allocations: 3.938 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.09456, allocations: 0 / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.01e-05/0.09462, allocations: 31.92 kB / 0.4898 GB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.09479, allocations: 169.6 kB / 0.49 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.09499, allocations: 58.55 kB / 0.49 GB, free: 9.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.023e-05/0.09504, allocations: 20.86 kB / 0.49 GB, free: 9.441 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002342/0.09528, allocations: 113.3 kB / 0.4901 GB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.09531, allocations: 34.5 kB / 0.4902 GB, free: 9.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.904e-06/0.09533, allocations: 0 / 0.4902 GB, free: 9.27 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.04042/0.1358, allocations: 2.587 MB / 0.4927 GB, free: 6.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.1358, allocations: 59.39 kB / 0.4928 GB, free: 6.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.798e-05/0.1359, allocations: 105.9 kB / 0.4929 GB, free: 6.461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.1359, allocations: 25.7 kB / 0.4929 GB, free: 6.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.136, allocations: 84.14 kB / 0.493 GB, free: 6.344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.1361, allocations: 63.09 kB / 0.493 GB, free: 6.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1362, allocations: 53.69 kB / 0.4931 GB, free: 6.223 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1363, allocations: 326.8 kB / 0.4934 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.1367, allocations: 175.9 kB / 0.4936 GB, free: 5.723 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.137, allocations: 175.9 kB / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009395/0.138, allocations: 412.7 kB / 0.4941 GB, free: 5.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.138, allocations: 0 / 0.4941 GB, free: 5.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009566/0.1389, allocations: 460.6 kB / 0.4946 GB, free: 4.691 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.139, allocations: 15.27 kB / 0.4946 GB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.139, allocations: 4 kB / 0.4946 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.139, allocations: 0 / 0.4946 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.1394, allocations: 67.94 kB / 0.4946 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1394, allocations: 0 / 0.4946 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.1396, allocations: 19.98 kB / 0.4947 GB, free: 4.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.1396, allocations: 15.98 kB / 0.4947 GB, free: 4.574 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.0001132/0.1397, allocations: 133.7 kB / 0.4948 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.1398, allocations: 7.906 kB / 0.4948 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.141, allocations: 0.5329 MB / 0.4953 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.141, allocations: 7.984 kB / 0.4953 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.141, allocations: 0 / 0.4953 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.141, allocations: 0 / 0.4953 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.143, allocations: 0.8929 MB / 0.4962 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.143, allocations: 4 kB / 0.4962 GB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002691/0.1433, allocations: 68.12 kB / 0.4963 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.1433, allocations: 4 kB / 0.4963 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.635e-05/0.1433, allocations: 23.92 kB / 0.4963 GB, free: 2.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1433, allocations: 4.188 kB / 0.4963 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1434, allocations: 4 kB / 0.4963 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.1442, allocations: 460.3 kB / 0.4967 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.53e-05/0.1443, allocations: 96.95 kB / 0.4968 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.611e-05/0.1443, allocations: 4 kB / 0.4968 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.1445, allocations: 23.97 kB / 0.4969 GB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.584e-05/0.1445, allocations: 12.45 kB / 0.4969 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.1446, allocations: 19.98 kB / 0.4969 GB, free: 2.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.959e-05/0.1446, allocations: 79.28 kB / 0.497 GB, free: 2.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1446, allocations: 0 / 0.497 GB, free: 2.066 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007707/0.1454, allocations: 320 kB / 0.4973 GB, free: 1.754 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.001294/0.1467, allocations: 242.9 kB / 0.4975 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000769/0.1475, allocations: 343.1 kB / 0.4978 GB, free: 1.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1475, allocations: 4 kB / 0.4978 GB, free: 1.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.1478, allocations: 143.8 kB / 0.498 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.1481, allocations: 12 kB / 0.498 GB, free: 1.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.1493, allocations: 406.9 kB / 0.4984 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.1495, allocations: 0.6965 MB / 0.4991 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002758/0.1498, allocations: 92.88 kB / 0.4991 GB, free: 15.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.15, allocations: 51.41 kB / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.15, allocations: 0 / 0.4992 GB, free: 15.7 MB / 398.1 MB Notification: Performance of Templates: time 0.02087/0.1709, allocations: 17.78 MB / 0.5166 GB, free: 13.85 MB / 414.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/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