Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001283/0.001283, allocations: 108.4 kB / 17.98 MB, free: 5.34 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.00132/0.00132, allocations: 193.3 kB / 18.9 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 222.9 MB / 242.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1927/0.1927, allocations: 44.19 MB / 336.9 MB, free: 2.926 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 70.72 kB / 408.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 60.81 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001633/0.1042, allocations: 0.6033 MB / 470 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006145/0.1048, allocations: 369.2 kB / 470.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.21e-05/0.1048, allocations: 0 / 470.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.1048, allocations: 0 / 470.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.108e-05/0.1049, allocations: 7.938 kB / 470.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.1053, allocations: 90.86 kB / 470.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.698e-05/0.1053, allocations: 31.91 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.345e-05/0.1054, allocations: 4 kB / 470.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.549e-05/0.1054, allocations: 15.92 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.798e-05/0.1055, allocations: 19.92 kB / 470.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1055, allocations: 0 / 470.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.1057, allocations: 115.9 kB / 470.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.1057, allocations: 7.922 kB / 470.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.1058, allocations: 11.94 kB / 470.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1059, allocations: 68.12 kB / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1059, allocations: 0 / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1059, allocations: 0 / 470.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1059, allocations: 4 kB / 470.7 MB, free: 13.4 MB / 350.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.0004086/0.1063, allocations: 363.4 kB / 471.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1064, allocations: 8.031 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.1064, allocations: 4.844 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.1065, allocations: 176.2 kB / 471.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1066, allocations: 4.359 kB / 471.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.1066, allocations: 8.375 kB / 471.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.1067, allocations: 50.19 kB / 471.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.1067, allocations: 12.19 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.1067, allocations: 3.938 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1068, allocations: 0 / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.326e-05/0.1068, allocations: 31.91 kB / 471.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.107, allocations: 169.6 kB / 471.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.1072, allocations: 54.55 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.1073, allocations: 24.86 kB / 471.6 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002387/0.1075, allocations: 109.1 kB / 471.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.1075, allocations: 34.84 kB / 471.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.465e-06/0.1075, allocations: 0 / 471.7 MB, free: 12.18 MB / 350.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.04245/0.15, allocations: 2.569 MB / 474.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.1501, allocations: 59.34 kB / 474.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.831e-05/0.1502, allocations: 101.8 kB / 474.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.106e-05/0.1502, allocations: 33.7 kB / 474.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.297e-05/0.1502, allocations: 84.14 kB / 474.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.1503, allocations: 59.11 kB / 474.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.1504, allocations: 61.67 kB / 474.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.489e-05/0.1506, allocations: 318.8 kB / 475 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/0.1509, allocations: 171.9 kB / 475.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004157/0.1513, allocations: 186.4 kB / 475.4 MB, free: 8.477 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000966/0.1523, allocations: 408.7 kB / 475.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1523, allocations: 0 / 475.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009693/0.1533, allocations: 467.7 kB / 476.2 MB, free: 7.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1533, allocations: 4 kB / 476.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1533, allocations: 0 / 476.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1534, allocations: 4 kB / 476.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004002/0.1538, allocations: 71.94 kB / 476.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.1538, allocations: 4 kB / 476.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.154, allocations: 15.97 kB / 476.3 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.009e-05/0.154, allocations: 19.98 kB / 476.3 MB, free: 7.496 MB / 350.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.0001276/0.1542, allocations: 121.7 kB / 476.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.1542, allocations: 7.906 kB / 476.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.1555, allocations: 0.5408 MB / 477 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1555, allocations: 0 / 477 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1555, allocations: 0 / 477 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1555, allocations: 0 / 477 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.1576, allocations: 0.9045 MB / 477.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1576, allocations: 0 / 477.9 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.1579, allocations: 68.19 kB / 478 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1579, allocations: 4.188 kB / 478 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.167e-05/0.158, allocations: 20 kB / 478 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.158, allocations: 7.984 kB / 478 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.158, allocations: 3.938 kB / 478 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008771/0.1589, allocations: 464.3 kB / 478.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.914e-05/0.1589, allocations: 85.02 kB / 478.5 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.159, allocations: 8 kB / 478.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.1592, allocations: 15.98 kB / 478.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.1592, allocations: 23.91 kB / 478.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/0.1593, allocations: 16.47 kB / 478.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.05e-05/0.1593, allocations: 87.27 kB / 478.7 MB, free: 5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1593, allocations: 0 / 478.7 MB, free: 5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008604/0.1602, allocations: 308 kB / 479 MB, free: 4.699 MB / 350.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.001257/0.1615, allocations: 243.5 kB / 479.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008133/0.1623, allocations: 350.4 kB / 479.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1623, allocations: 0 / 479.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003187/0.1626, allocations: 151.8 kB / 479.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.1629, allocations: 8 kB / 479.7 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.1642, allocations: 468.4 kB / 480.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.1644, allocations: 0.6965 MB / 480.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.1646, allocations: 51.41 kB / 480.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1646, allocations: 0 / 480.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of Templates: time 0.009405/0.174, allocations: 6.541 MB / 487.5 MB, free: 12.19 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches