Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 187 kB / 16.64 MB, free: 5.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.1 MB / 222.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 103.4 kB / 269.9 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.273/0.273, allocations: 43.48 MB / 360.7 MB, free: 51.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009676/0.0009678, allocations: 51.92 kB / 429.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09321, allocations: 57.77 MB / 487 MB, free: 12.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001656/0.09491, allocations: 0.5931 MB / 487.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007553/0.09569, allocations: 449.5 kB / 488 MB, free: 11.52 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.795e-05/0.09573, allocations: 0 / 488 MB, free: 11.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.09577, allocations: 3.938 kB / 488 MB, free: 11.51 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.358e-05/0.0958, allocations: 0 / 488 MB, free: 11.51 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003722/0.09617, allocations: 99.77 kB / 488.1 MB, free: 11.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 5.061e-05/0.09624, allocations: 19.98 kB / 488.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.509e-05/0.09628, allocations: 7.938 kB / 488.2 MB, free: 11.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.996e-05/0.0963, allocations: 11.94 kB / 488.2 MB, free: 11.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.664e-05/0.09636, allocations: 19.92 kB / 488.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.09637, allocations: 3.984 kB / 488.2 MB, free: 11.35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002393/0.09662, allocations: 151.8 kB / 488.4 MB, free: 11.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.65e-05/0.09664, allocations: 15.91 kB / 488.4 MB, free: 11.19 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.101e-05/0.09667, allocations: 11.94 kB / 488.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.09687, allocations: 124 kB / 488.5 MB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.09689, allocations: 3.938 kB / 488.5 MB, free: 11.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.09689, allocations: 0 / 488.5 MB, free: 11.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.0969, allocations: 3.938 kB / 488.5 MB, free: 11.05 MB / 378.7 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.0003767/0.09728, allocations: 363.4 kB / 488.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.09732, allocations: 8.031 kB / 488.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.566e-05/0.09736, allocations: 12.84 kB / 488.9 MB, free: 10.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.09748, allocations: 172.3 kB / 489.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.0975, allocations: 4.375 kB / 489.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.09754, allocations: 8.281 kB / 489.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.09765, allocations: 54.23 kB / 489.1 MB, free: 10.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.09767, allocations: 7.875 kB / 489.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.09769, allocations: 0 / 489.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.0977, allocations: 4 kB / 489.1 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.062e-05/0.09777, allocations: 27.98 kB / 489.2 MB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.09793, allocations: 165.7 kB / 489.3 MB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001944/0.09813, allocations: 66.58 kB / 489.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.275e-05/0.09818, allocations: 24.86 kB / 489.4 MB, free: 9.996 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002329/0.09842, allocations: 105.1 kB / 489.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.09845, allocations: 30.56 kB / 489.5 MB, free: 9.836 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.09846, allocations: 0 / 489.5 MB, free: 9.836 MB / 378.7 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.1479/0.2464, allocations: 6.389 MB / 495.9 MB, free: 3.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.2464, allocations: 55.41 kB / 496 MB, free: 3.344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.799e-05/0.2465, allocations: 101.8 kB / 496.1 MB, free: 3.234 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.2466, allocations: 29.7 kB / 496.1 MB, free: 3.199 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.2466, allocations: 84.14 kB / 496.2 MB, free: 3.113 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.235e-05/0.2467, allocations: 70.98 kB / 496.3 MB, free: 3.043 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.2469, allocations: 85.59 kB / 496.4 MB, free: 2.953 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.247, allocations: 318.8 kB / 496.7 MB, free: 2.633 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005426/0.2475, allocations: 235.8 kB / 496.9 MB, free: 2.402 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/0.2481, allocations: 223.8 kB / 497.1 MB, free: 2.184 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.25, allocations: 0.5629 MB / 497.7 MB, free: 1.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2501, allocations: 3.984 kB / 497.7 MB, free: 1.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001734/0.2518, allocations: 0.606 MB / 498.3 MB, free: 1.004 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2518, allocations: 8 kB / 498.3 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2518, allocations: 0 / 498.3 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2518, allocations: 0 / 498.3 MB, free: 0.9961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/0.2525, allocations: 103.8 kB / 498.4 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2525, allocations: 7.938 kB / 498.4 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.2529, allocations: 27.95 kB / 498.4 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-05/0.253, allocations: 35.92 kB / 498.5 MB, free: 0.8242 MB / 378.7 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.0001292/0.2531, allocations: 121.8 kB / 498.6 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.2532, allocations: 7.906 kB / 498.6 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/0.2552, allocations: 0.728 MB / 499.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2552, allocations: 4 kB / 499.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2553, allocations: 256 / 499.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2553, allocations: 0 / 499.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.259, allocations: 1.18 MB / 0.4888 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.259, allocations: 3.984 kB / 0.4888 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.2595, allocations: 99.8 kB / 0.4889 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2596, allocations: 0 / 0.4889 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.015e-05/0.2596, allocations: 32.42 kB / 0.4889 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2596, allocations: 0 / 0.4889 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2596, allocations: 4 kB / 0.4889 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.2619, allocations: 1.307 MB / 0.4902 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.358e-05/0.262, allocations: 89 kB / 0.4903 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.262, allocations: 7.938 kB / 0.4903 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003786/0.2624, allocations: 31.97 kB / 0.4903 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.2624, allocations: 15.86 kB / 0.4903 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-05/0.2625, allocations: 31.95 kB / 0.4903 GB, free: 12.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.359e-05/0.2625, allocations: 83.27 kB / 0.4904 GB, free: 12.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2625, allocations: 4 kB / 0.4904 GB, free: 12.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001622/0.2642, allocations: 0.6445 MB / 0.4911 GB, free: 12.25 MB / 394.7 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.00311/0.2673, allocations: 306.8 kB / 0.4914 GB, free: 11.94 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.2684, allocations: 447 kB / 0.4918 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2684, allocations: 0 / 0.4918 GB, free: 11.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004832/0.2689, allocations: 199.8 kB / 0.492 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002731/0.2692, allocations: 15.98 kB / 0.492 GB, free: 11.29 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.2714, allocations: 0.6982 MB / 0.4927 GB, free: 10.54 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.2716, allocations: 0.6968 MB / 0.4933 GB, free: 9.809 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005178/0.2722, allocations: 128.9 kB / 0.4935 GB, free: 9.684 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003124/0.2725, allocations: 91.28 kB / 0.4936 GB, free: 9.594 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2725, allocations: 0 / 0.4936 GB, free: 9.594 MB / 394.7 MB Notification: Performance of Templates: time 0.2034/0.4758, allocations: 57.22 MB / 0.5494 GB, free: 40.45 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches