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.001113/0.001113, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.001026/0.001026, allocations: 194 kB / 18.12 MB, free: 5.383 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.318/1.318, allocations: 222.9 MB / 241.8 MB, free: 15.43 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.2018/0.2018, allocations: 44.18 MB / 336.1 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 59.41 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0975/0.09881, allocations: 60.83 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001672/0.1005, allocations: 0.5987 MB / 469.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006645/0.1012, allocations: 385.3 kB / 469.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.471e-05/0.1012, allocations: 0 / 469.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.699e-05/0.1013, allocations: 3.938 kB / 469.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.486e-05/0.1013, allocations: 0 / 469.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1016, allocations: 83.8 kB / 469.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.466e-05/0.1016, allocations: 19.98 kB / 469.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.264e-05/0.1017, allocations: 0 / 469.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.279e-05/0.1017, allocations: 19.92 kB / 469.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.625e-05/0.1018, allocations: 15.92 kB / 469.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.1018, allocations: 0 / 469.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001925/0.102, allocations: 115.9 kB / 469.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.603e-05/0.102, allocations: 11.92 kB / 469.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.102, allocations: 11.92 kB / 469.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001554/0.1022, allocations: 103.7 kB / 469.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1022, allocations: 4 kB / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1022, allocations: 0 / 469.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1022, allocations: 0 / 469.9 MB, free: 13.46 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.0003908/0.1026, allocations: 366.6 kB / 470.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.1027, allocations: 8.031 kB / 470.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.1027, allocations: 8.844 kB / 470.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.716e-05/0.1028, allocations: 172.2 kB / 470.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1028, allocations: 4.375 kB / 470.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.1028, allocations: 8.359 kB / 470.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.103, allocations: 58.23 kB / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.103, allocations: 192 / 470.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.103, allocations: 7.938 kB / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.103, allocations: 0 / 470.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.196e-05/0.1031, allocations: 27.92 kB / 470.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1032, allocations: 173.6 kB / 470.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.1034, allocations: 50.56 kB / 470.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.912e-05/0.1035, allocations: 33.12 kB / 470.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002457/0.1037, allocations: 113 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.1038, allocations: 30.56 kB / 470.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.1038, allocations: 0 / 470.9 MB, free: 12.25 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.04703/0.1508, allocations: 2.581 MB / 473.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.1509, allocations: 51.41 kB / 473.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.698e-05/0.151, allocations: 109.8 kB / 473.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/0.151, allocations: 29.7 kB / 473.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.188e-05/0.1511, allocations: 80.14 kB / 473.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.522e-05/0.1511, allocations: 59.11 kB / 473.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.1513, allocations: 57.69 kB / 473.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1514, allocations: 322.8 kB / 474.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003796/0.1518, allocations: 179.9 kB / 474.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.1522, allocations: 175.9 kB / 474.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009941/0.1532, allocations: 411.1 kB / 474.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.1532, allocations: 4 kB / 474.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001035/0.1542, allocations: 461.3 kB / 475.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1543, allocations: 8 kB / 475.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1543, allocations: 0 / 475.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1543, allocations: 0 / 475.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.1547, allocations: 71.94 kB / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1547, allocations: 0 / 475.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.1549, allocations: 19.97 kB / 475.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.542e-05/0.155, allocations: 16 kB / 475.5 MB, free: 7.559 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.0001258/0.1551, allocations: 129.7 kB / 475.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.04e-05/0.1551, allocations: 7.906 kB / 475.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001296/0.1564, allocations: 0.5351 MB / 476.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1565, allocations: 4.469 kB / 476.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1565, allocations: 3.938 kB / 476.2 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1565, allocations: 8.172 kB / 476.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.1585, allocations: 0.8891 MB / 477.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.1585, allocations: 8 kB / 477.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002752/0.1588, allocations: 68.08 kB / 477.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.1588, allocations: 4 kB / 477.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.334e-05/0.1589, allocations: 19.98 kB / 477.2 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1589, allocations: 3.938 kB / 477.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1589, allocations: 4 kB / 477.2 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008876/0.1598, allocations: 464.2 kB / 477.6 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.61e-05/0.1598, allocations: 85.02 kB / 477.7 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.1599, allocations: 15.98 kB / 477.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1601, allocations: 15.98 kB / 477.8 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.523e-05/0.1601, allocations: 15.98 kB / 477.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.843e-05/0.1602, allocations: 15.98 kB / 477.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.908e-05/0.1602, allocations: 79.28 kB / 477.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1602, allocations: 0 / 477.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008758/0.1611, allocations: 316 kB / 478.2 MB, free: 4.758 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.001379/0.1625, allocations: 243.5 kB / 478.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007878/0.1633, allocations: 331.7 kB / 478.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1633, allocations: 4 kB / 478.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003445/0.1636, allocations: 150 kB / 478.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.1639, allocations: 10.58 kB / 478.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001327/0.1653, allocations: 456.4 kB / 479.3 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1655, allocations: 0.6929 MB / 480 MB, free: 2.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.1659, allocations: 92.88 kB / 480.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.1661, allocations: 47.41 kB / 480.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1661, allocations: 0 / 480.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of Templates: time 0.0223/0.1884, allocations: 17.59 MB / 497.8 MB, free: 1.121 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/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