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.00122/0.00122, allocations: 101.6 kB / 16.27 MB, free: 6.395 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.001145/0.001145, allocations: 191.4 kB / 17.2 MB, free: 5.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.342/1.342, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.1984/0.1984, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 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.002254/0.002254, allocations: 67.33 kB / 382.7 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.0983, allocations: 57.78 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001655/0.09999, allocations: 0.538 MB / 441.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005074/0.1005, allocations: 375.1 kB / 441.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.462e-05/0.1006, allocations: 0 / 441.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.24e-05/0.1006, allocations: 3.938 kB / 441.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.166e-05/0.1006, allocations: 0 / 441.4 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.101, allocations: 111.8 kB / 441.5 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.792e-05/0.101, allocations: 31.84 kB / 441.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.863e-05/0.1011, allocations: 8 kB / 441.6 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.874e-05/0.1011, allocations: 11.92 kB / 441.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.516e-05/0.1011, allocations: 15.92 kB / 441.6 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1011, allocations: 4 kB / 441.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1013, allocations: 115.9 kB / 441.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.1013, allocations: 11.98 kB / 441.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.1014, allocations: 11.88 kB / 441.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.1015, allocations: 91.8 kB / 441.8 MB, free: 5.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1015, allocations: 0 / 441.8 MB, free: 5.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1015, allocations: 8 kB / 441.8 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1015, allocations: 0 / 441.8 MB, free: 5.578 MB / 318.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.0003224/0.1019, allocations: 363.4 kB / 442.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1019, allocations: 12.03 kB / 442.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.436e-05/0.102, allocations: 0.9375 kB / 442.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.044e-05/0.102, allocations: 172.3 kB / 442.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.102, allocations: 8.25 kB / 442.4 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.1021, allocations: 8.375 kB / 442.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.1022, allocations: 50.25 kB / 442.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1022, allocations: 192 / 442.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.437e-06/0.1022, allocations: 7.938 kB / 442.4 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1022, allocations: 4 kB / 442.5 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.598e-05/0.1023, allocations: 27.97 kB / 442.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001216/0.1024, allocations: 165.6 kB / 442.6 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.1026, allocations: 58.55 kB / 442.7 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.822e-05/0.1027, allocations: 28.86 kB / 442.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002218/0.1029, allocations: 105.1 kB / 442.8 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.182e-05/0.1029, allocations: 30.56 kB / 442.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1029, allocations: 0 / 442.9 MB, free: 4.375 MB / 318.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.04214/0.1451, allocations: 2.584 MB / 445.4 MB, free: 1.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.626e-05/0.1451, allocations: 55.41 kB / 445.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.37e-05/0.1452, allocations: 105.8 kB / 445.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.1452, allocations: 33.7 kB / 445.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.889e-05/0.1452, allocations: 88.08 kB / 445.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.1453, allocations: 59.09 kB / 445.8 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1454, allocations: 69.67 kB / 445.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.875e-05/0.1455, allocations: 318.8 kB / 446.2 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.1458, allocations: 171.9 kB / 446.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003126/0.1461, allocations: 179.9 kB / 446.5 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008586/0.147, allocations: 411.8 kB / 446.9 MB, free: 252 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.147, allocations: 4 kB / 446.9 MB, free: 248 kB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000962/0.1479, allocations: 457.3 kB / 447.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.148, allocations: 4 kB / 447.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.148, allocations: 480 / 447.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.148, allocations: 0 / 447.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.1484, allocations: 79.88 kB / 447.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.1484, allocations: 3.984 kB / 447.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.1486, allocations: 15.98 kB / 447.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.1487, allocations: 19.92 kB / 447.5 MB, free: 15.67 MB / 334.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.0001136/0.1488, allocations: 129.7 kB / 447.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.227e-05/0.1488, allocations: 11.89 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.1501, allocations: 0.5402 MB / 448.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.1501, allocations: 4 kB / 448.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1501, allocations: 0 / 448.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1501, allocations: 0 / 448.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.1522, allocations: 0.8815 MB / 449 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1522, allocations: 0 / 449 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000284/0.1525, allocations: 75.88 kB / 449.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1525, allocations: 4.188 kB / 449.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.036e-05/0.1525, allocations: 19.98 kB / 449.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.1526, allocations: 4 kB / 449.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1526, allocations: 3.938 kB / 449.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009021/0.1535, allocations: 460.3 kB / 449.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.1535, allocations: 88.95 kB / 449.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.1536, allocations: 8 kB / 449.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002028/0.1538, allocations: 19.97 kB / 449.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.684e-05/0.1538, allocations: 19.92 kB / 449.7 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-05/0.1539, allocations: 12 kB / 449.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.567e-05/0.1539, allocations: 87.27 kB / 449.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1539, allocations: 0 / 449.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008467/0.1548, allocations: 315.9 kB / 450.1 MB, free: 12.87 MB / 334.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.001265/0.156, allocations: 235.1 kB / 450.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.1568, allocations: 351.3 kB / 450.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1569, allocations: 0 / 450.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.1572, allocations: 151.8 kB / 450.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.1575, allocations: 8 kB / 450.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.1588, allocations: 422.7 kB / 451.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.159, allocations: 0.6926 MB / 452 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003736/0.1594, allocations: 96.88 kB / 452.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.1596, allocations: 47.41 kB / 452.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1596, allocations: 0 / 452.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of Templates: time 0.0219/0.1815, allocations: 17.78 MB / 469.9 MB, free: 8.984 MB / 350.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