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.001438/0.001438, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001553/0.001553, allocations: 191 kB / 19.34 MB, free: 3.637 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.507/1.507, allocations: 222.9 MB / 243 MB, free: 15.08 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.2151/0.2151, allocations: 44.18 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 68.67 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1224, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001947/0.1243, allocations: 0.5338 MB / 471.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007096/0.1251, allocations: 365.2 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.1251, allocations: 3.938 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.603e-05/0.1251, allocations: 3.938 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.45e-05/0.1252, allocations: 3.938 kB / 471.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1257, allocations: 111.6 kB / 471.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.953e-05/0.1257, allocations: 27.91 kB / 471.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.282e-05/0.1258, allocations: 8 kB / 471.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.1258, allocations: 4 kB / 471.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.163e-05/0.1259, allocations: 23.84 kB / 471.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.1259, allocations: 4 kB / 471.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.1261, allocations: 115.9 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.63e-05/0.1262, allocations: 7.984 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.504e-05/0.1262, allocations: 15.86 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.1264, allocations: 95.81 kB / 472 MB, free: 12.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1264, allocations: 4 kB / 472 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1264, allocations: 0 / 472 MB, free: 12.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1264, allocations: 0 / 472 MB, free: 12.33 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.0004188/0.1268, allocations: 366.3 kB / 472.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.1269, allocations: 11.97 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.1269, allocations: 8.844 kB / 472.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.127, allocations: 164.3 kB / 472.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.127, allocations: 4.375 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.1271, allocations: 4.375 kB / 472.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.1272, allocations: 58.23 kB / 472.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1272, allocations: 192 / 472.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1272, allocations: 7.938 kB / 472.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.1272, allocations: 0 / 472.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.42e-05/0.1273, allocations: 27.92 kB / 472.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002238/0.1275, allocations: 177.5 kB / 472.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.1277, allocations: 50.56 kB / 472.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.333e-05/0.1278, allocations: 41.05 kB / 472.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002354/0.128, allocations: 105 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.1281, allocations: 42.55 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.1281, allocations: 0 / 473.1 MB, free: 11.11 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.04216/0.1702, allocations: 2.56 MB / 475.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.1703, allocations: 55.41 kB / 475.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.1704, allocations: 97.86 kB / 475.8 MB, free: 8.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.1704, allocations: 37.7 kB / 475.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.1705, allocations: 84.12 kB / 475.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/0.1706, allocations: 59.11 kB / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.1707, allocations: 57.69 kB / 476 MB, free: 8.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1708, allocations: 326.8 kB / 476.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/0.1712, allocations: 163.9 kB / 476.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.1715, allocations: 183.8 kB / 476.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009559/0.1725, allocations: 415.3 kB / 477.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1725, allocations: 4.469 kB / 477.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009902/0.1735, allocations: 461.3 kB / 477.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.1735, allocations: 4 kB / 477.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1735, allocations: 3.938 kB / 477.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1735, allocations: 4 kB / 477.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003794/0.1739, allocations: 75.88 kB / 477.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.174, allocations: 0 / 477.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.1742, allocations: 15.98 kB / 477.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.1742, allocations: 19.98 kB / 477.6 MB, free: 6.426 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.0001095/0.1743, allocations: 121.7 kB / 477.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.1744, allocations: 11.89 kB / 477.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001189/0.1756, allocations: 0.5371 MB / 478.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.1756, allocations: 3.938 kB / 478.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.1756, allocations: 4 kB / 478.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.1756, allocations: 4 kB / 478.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.1776, allocations: 0.8966 MB / 479.2 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1777, allocations: 4 kB / 479.2 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002798/0.1779, allocations: 63.94 kB / 479.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.178, allocations: 4.188 kB / 479.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.178, allocations: 23.92 kB / 479.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.178, allocations: 4 kB / 479.3 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.178, allocations: 4 kB / 479.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008577/0.1789, allocations: 463 kB / 479.8 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.508e-05/0.1789, allocations: 85.02 kB / 479.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.66e-05/0.179, allocations: 8 kB / 479.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.1792, allocations: 23.97 kB / 479.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.1792, allocations: 11.98 kB / 479.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-05/0.1793, allocations: 19.98 kB / 479.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.245e-05/0.1793, allocations: 79.28 kB / 480 MB, free: 3.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1793, allocations: 0 / 480 MB, free: 3.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007746/0.1801, allocations: 316 kB / 480.3 MB, free: 3.633 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.001215/0.1813, allocations: 242.9 kB / 480.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007533/0.1821, allocations: 335.7 kB / 480.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1821, allocations: 0 / 480.9 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.1824, allocations: 151.8 kB / 481 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.1827, allocations: 12 kB / 481 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.1839, allocations: 414.7 kB / 481.4 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002584/0.1842, allocations: 0.7004 MB / 482.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000274/0.1845, allocations: 92.88 kB / 482.2 MB, free: 1.617 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.1847, allocations: 47.41 kB / 482.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1847, allocations: 0 / 482.3 MB, free: 1.57 MB / 350.1 MB Notification: Performance of Templates: time 0.02164/0.2063, allocations: 17.79 MB / 0.4883 GB, free: 15.82 MB / 382.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 -s cvode -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