Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,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.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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 111.3 kB / 18.45 MB, free: 4.645 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.001128/0.001128, allocations: 186.2 kB / 19.38 MB, free: 3.723 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.261/1.261, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.1963/0.1963, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3173, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001498/0.3188, allocations: 0.5444 MB / 0.5201 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00067/0.3195, allocations: 406.5 kB / 0.5205 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.093e-05/0.3196, allocations: 1.219 kB / 0.5205 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.964e-05/0.3196, allocations: 3.938 kB / 0.5205 GB, free: 3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.982e-05/0.3196, allocations: 4 kB / 0.5205 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005111/0.3201, allocations: 135.7 kB / 0.5206 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.577e-05/0.3202, allocations: 28.53 kB / 0.5206 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.3203, allocations: 7.156 kB / 0.5206 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.519e-05/0.3203, allocations: 6.938 kB / 0.5206 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.462e-05/0.3204, allocations: 20.5 kB / 0.5207 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.3204, allocations: 2.281 kB / 0.5207 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.3207, allocations: 165.5 kB / 0.5208 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.3207, allocations: 10.03 kB / 0.5208 GB, free: 2.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.973e-05/0.3207, allocations: 22.31 kB / 0.5209 GB, free: 2.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.321, allocations: 125.1 kB / 0.521 GB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.321, allocations: 0 / 0.521 GB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.321, allocations: 1.594 kB / 0.521 GB, free: 2.801 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.321, allocations: 0 / 0.521 GB, free: 2.801 MB / 382.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.0003761/0.3214, allocations: 357.7 kB / 0.5213 GB, free: 2.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.3214, allocations: 9.969 kB / 0.5213 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.3215, allocations: 4.188 kB / 0.5213 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.744e-05/0.3215, allocations: 172.8 kB / 0.5215 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.3216, allocations: 9.438 kB / 0.5215 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.3216, allocations: 4.516 kB / 0.5215 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.3217, allocations: 52.66 kB / 0.5216 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3217, allocations: 5.766 kB / 0.5216 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.3218, allocations: 0 / 0.5216 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3218, allocations: 6.016 kB / 0.5216 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.643e-05/0.3218, allocations: 24.78 kB / 0.5216 GB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.322, allocations: 181.7 kB / 0.5218 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.3222, allocations: 58.56 kB / 0.5218 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.475e-05/0.3223, allocations: 24.16 kB / 0.5218 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/0.3225, allocations: 104.9 kB / 0.5219 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.3226, allocations: 35.75 kB / 0.522 GB, free: 1.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.685e-06/0.3226, allocations: 4 kB / 0.522 GB, free: 1.77 MB / 382.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.1393/0.4619, allocations: 6.377 MB / 0.5282 GB, free: 14.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.462, allocations: 56.83 kB / 0.5283 GB, free: 14.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.43e-05/0.4621, allocations: 104.7 kB / 0.5284 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.4621, allocations: 30.8 kB / 0.5284 GB, free: 14.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.382e-05/0.4622, allocations: 84.08 kB / 0.5285 GB, free: 14.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.903e-05/0.4623, allocations: 63.05 kB / 0.5285 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.4625, allocations: 85.12 kB / 0.5286 GB, free: 14.46 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4626, allocations: 329 kB / 0.5289 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.4631, allocations: 224.3 kB / 0.5291 GB, free: 14.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005279/0.4637, allocations: 226.7 kB / 0.5294 GB, free: 13.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/0.4657, allocations: 0.5592 MB / 0.5299 GB, free: 13.6 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.4658, allocations: 1.344 kB / 0.5299 GB, free: 13.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001804/0.4676, allocations: 0.6123 MB / 0.5305 GB, free: 13.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4676, allocations: 6.094 kB / 0.5305 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.4676, allocations: 0 / 0.5305 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.4676, allocations: 1.156 kB / 0.5305 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006484/0.4683, allocations: 107.9 kB / 0.5306 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.4683, allocations: 1.25 kB / 0.5306 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000416/0.4687, allocations: 28.78 kB / 0.5306 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-05/0.4688, allocations: 35.75 kB / 0.5307 GB, free: 13.18 MB / 398.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.0001666/0.469, allocations: 121 kB / 0.5308 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.611e-05/0.469, allocations: 7.562 kB / 0.5308 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002092/0.4711, allocations: 0.7381 MB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.4712, allocations: 2.156 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4712, allocations: 1.094 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4712, allocations: 3.984 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/0.475, allocations: 1.166 MB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.475, allocations: 1.219 kB / 0.5327 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.4756, allocations: 102.8 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4756, allocations: 1.656 kB / 0.5328 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.61e-05/0.4756, allocations: 26.86 kB / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.4756, allocations: 2.438 kB / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.4757, allocations: 5.172 kB / 0.5328 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.4773, allocations: 0.5874 MB / 0.5334 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.4774, allocations: 88.45 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.4774, allocations: 7.641 kB / 0.5335 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.4778, allocations: 24.72 kB / 0.5335 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.4779, allocations: 18.52 kB / 0.5335 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.144e-05/0.4779, allocations: 33.23 kB / 0.5335 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.965e-05/0.478, allocations: 82.55 kB / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.478, allocations: 0 / 0.5336 GB, free: 11.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001775/0.4798, allocations: 0.6465 MB / 0.5342 GB, free: 11.04 MB / 398.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.002968/0.4827, allocations: 294.3 kB / 0.5345 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.4839, allocations: 450 kB / 0.535 GB, free: 10.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4839, allocations: 0 / 0.535 GB, free: 10.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005216/0.4845, allocations: 208.2 kB / 0.5352 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.4848, allocations: 16.94 kB / 0.5352 GB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.4871, allocations: 0.551 MB / 0.5357 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.4873, allocations: 0.6949 MB / 0.5364 GB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.4876, allocations: 88.3 kB / 0.5365 GB, free: 9.363 MB / 398.1 MB Notification: Performance of SimCode: time 1.943e-06/0.4876, allocations: 5.188 kB / 0.5365 GB, free: 9.359 MB / 398.1 MB Notification: Performance of Templates: time 0.02231/0.51, allocations: 15.96 MB / 0.5521 GB, free: 10.32 MB / 414.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches