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.001018/0.001018, allocations: 113.2 kB / 17.78 MB, free: 5.242 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.001094/0.001095, allocations: 185 kB / 18.71 MB, free: 4.32 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.322/1.322, allocations: 222.9 MB / 242.4 MB, free: 15.14 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.2012/0.2012, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3217, allocations: 60.82 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001896/0.3237, allocations: 0.5435 MB / 0.5194 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008132/0.3245, allocations: 407.3 kB / 0.5198 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.459e-05/0.3246, allocations: 1.094 kB / 0.5198 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.3246, allocations: 3.938 kB / 0.5198 GB, free: 3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.774e-05/0.3246, allocations: 0 / 0.5198 GB, free: 3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004975/0.3251, allocations: 142.3 kB / 0.5199 GB, free: 2.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.843e-05/0.3252, allocations: 25.05 kB / 0.52 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.903e-05/0.3253, allocations: 8.109 kB / 0.52 GB, free: 2.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.53e-05/0.3253, allocations: 11 kB / 0.52 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.449e-05/0.3254, allocations: 20.33 kB / 0.52 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.3254, allocations: 2.375 kB / 0.52 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003/0.3257, allocations: 159.5 kB / 0.5202 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.421e-05/0.3257, allocations: 8.094 kB / 0.5202 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.947e-05/0.3257, allocations: 17.75 kB / 0.5202 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.326, allocations: 125.4 kB / 0.5203 GB, free: 2.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.326, allocations: 0 / 0.5203 GB, free: 2.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.326, allocations: 4 kB / 0.5203 GB, free: 2.805 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.326, allocations: 1.125 kB / 0.5203 GB, free: 2.805 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.0004048/0.3264, allocations: 361.8 kB / 0.5207 GB, free: 2.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.3265, allocations: 10.03 kB / 0.5207 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.3265, allocations: 3.312 kB / 0.5207 GB, free: 2.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.254e-05/0.3266, allocations: 174 kB / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.3266, allocations: 1.438 kB / 0.5208 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.3267, allocations: 7.75 kB / 0.5208 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001265/0.3268, allocations: 58.25 kB / 0.5209 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3268, allocations: 3.938 kB / 0.5209 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.3268, allocations: 1.125 kB / 0.5209 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.3269, allocations: 5.656 kB / 0.5209 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.185e-05/0.3269, allocations: 28.59 kB / 0.5209 GB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.3271, allocations: 173.4 kB / 0.5211 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.3274, allocations: 51.09 kB / 0.5212 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/0.3274, allocations: 36.27 kB / 0.5212 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002592/0.3277, allocations: 103.8 kB / 0.5213 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/0.3277, allocations: 36.12 kB / 0.5213 GB, free: 1.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.374e-06/0.3277, allocations: 1.531 kB / 0.5213 GB, free: 1.773 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.1501/0.4778, allocations: 6.372 MB / 0.5275 GB, free: 14.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.754e-05/0.4779, allocations: 65.61 kB / 0.5276 GB, free: 14.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.655e-05/0.478, allocations: 104.6 kB / 0.5277 GB, free: 14.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.961e-05/0.478, allocations: 29.7 kB / 0.5277 GB, free: 14.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.476e-05/0.4781, allocations: 81.39 kB / 0.5278 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.662e-05/0.4782, allocations: 62.59 kB / 0.5279 GB, free: 14.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.4783, allocations: 89.62 kB / 0.528 GB, free: 14.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.4785, allocations: 320.9 kB / 0.5283 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005736/0.479, allocations: 233.1 kB / 0.5285 GB, free: 14.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005523/0.4796, allocations: 225.5 kB / 0.5287 GB, free: 13.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.4818, allocations: 0.5546 MB / 0.5292 GB, free: 13.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4818, allocations: 0 / 0.5292 GB, free: 13.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001911/0.4837, allocations: 0.6128 MB / 0.5298 GB, free: 13.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4837, allocations: 8.219 kB / 0.5298 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4837, allocations: 0 / 0.5298 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.4838, allocations: 8 kB / 0.5299 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.4845, allocations: 109.4 kB / 0.53 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.4845, allocations: 1.156 kB / 0.53 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004655/0.485, allocations: 27.67 kB / 0.53 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-05/0.485, allocations: 32.67 kB / 0.53 GB, free: 13.2 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.0001598/0.4852, allocations: 124.5 kB / 0.5301 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.855e-05/0.4853, allocations: 12.09 kB / 0.5301 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/0.4875, allocations: 0.7281 MB / 0.5309 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.4875, allocations: 2.219 kB / 0.5309 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4875, allocations: 0 / 0.5309 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4875, allocations: 4 kB / 0.5309 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004143/0.4917, allocations: 1.162 MB / 0.532 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4917, allocations: 1.469 kB / 0.532 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/0.4923, allocations: 106.2 kB / 0.5321 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.4923, allocations: 2.125 kB / 0.5321 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.171e-05/0.4924, allocations: 26.23 kB / 0.5321 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.4924, allocations: 2.25 kB / 0.5321 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.4924, allocations: 6.125 kB / 0.5321 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.4941, allocations: 0.5813 MB / 0.5327 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.4942, allocations: 84.42 kB / 0.5328 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.164e-05/0.4943, allocations: 12.16 kB / 0.5328 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.4947, allocations: 28.33 kB / 0.5328 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.676e-05/0.4947, allocations: 14.7 kB / 0.5328 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.881e-05/0.4948, allocations: 28.86 kB / 0.5329 GB, free: 11.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.811e-05/0.4948, allocations: 87.56 kB / 0.533 GB, free: 11.1 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4948, allocations: 4 kB / 0.533 GB, free: 11.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001794/0.4966, allocations: 0.6457 MB / 0.5336 GB, free: 11.05 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.003131/0.4998, allocations: 299 kB / 0.5339 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.501, allocations: 451 kB / 0.5343 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.501, allocations: 0 / 0.5343 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005334/0.5016, allocations: 209.5 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.5019, allocations: 8.625 kB / 0.5345 GB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.5042, allocations: 0.5332 MB / 0.535 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.5045, allocations: 0.6941 MB / 0.5357 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004382/0.5049, allocations: 123.7 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003121/0.5053, allocations: 92.59 kB / 0.5359 GB, free: 9.355 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5053, allocations: 0 / 0.5359 GB, free: 9.355 MB / 398.1 MB Notification: Performance of Templates: time 0.06701/0.5723, allocations: 57.4 MB / 0.592 GB, free: 0.7461 MB / 446.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/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