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/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 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 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009606/0.0009605, allocations: 102.4 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 184.8 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.4 MB / 223.1 MB, free: 5.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3191/0.3191, allocations: 43.58 MB / 315 MB, free: 8.68 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005578/0.0005578, allocations: 12 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1199, allocations: 58.86 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0007569/0.1207, allocations: 280.2 kB / 443.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008887/0.1217, allocations: 422.2 kB / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.488e-05/0.1217, allocations: 4 kB / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.1217, allocations: 0 / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.634e-05/0.1218, allocations: 0 / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.1223, allocations: 111.7 kB / 444.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.039e-05/0.1223, allocations: 27.92 kB / 444.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.85e-05/0.1224, allocations: 4 kB / 444.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.961e-05/0.1224, allocations: 7.938 kB / 444.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.221e-05/0.1225, allocations: 15.92 kB / 444.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1225, allocations: 4 kB / 444.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002678/0.1228, allocations: 159.8 kB / 444.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.953e-05/0.1228, allocations: 11.92 kB / 444.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.1229, allocations: 41.62 kB / 444.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.1231, allocations: 124 kB / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1231, allocations: 3.938 kB / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1231, allocations: 0 / 444.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1231, allocations: 0 / 444.6 MB, free: 11.48 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.0004139/0.1235, allocations: 359.4 kB / 445 MB, free: 11.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1236, allocations: 8.031 kB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.311e-05/0.1236, allocations: 4.844 kB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001091/0.1237, allocations: 172.3 kB / 445.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1237, allocations: 384 / 445.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.1238, allocations: 4.375 kB / 445.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.1239, allocations: 62.17 kB / 445.2 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1239, allocations: 11.84 kB / 445.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.124, allocations: 0 / 445.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.124, allocations: 0 / 445.2 MB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.318e-05/0.124, allocations: 27.98 kB / 445.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.1242, allocations: 173.6 kB / 445.4 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1244, allocations: 54.59 kB / 445.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.713e-05/0.1245, allocations: 28.84 kB / 445.5 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003038/0.1248, allocations: 117.1 kB / 445.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.1248, allocations: 38.5 kB / 445.7 MB, free: 10.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.1249, allocations: 4 kB / 445.7 MB, free: 10.26 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.1513/0.2762, allocations: 6.62 MB / 452.3 MB, free: 3.598 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.2763, allocations: 55.39 kB / 452.4 MB, free: 3.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.189e-05/0.2764, allocations: 97.86 kB / 452.4 MB, free: 3.426 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.2764, allocations: 29.7 kB / 452.5 MB, free: 3.391 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.119e-05/0.2765, allocations: 80.14 kB / 452.6 MB, free: 3.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.2766, allocations: 67 kB / 452.6 MB, free: 3.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/0.2767, allocations: 21.72 kB / 452.6 MB, free: 3.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.2768, allocations: 334.7 kB / 453 MB, free: 2.879 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.2774, allocations: 239.8 kB / 453.2 MB, free: 2.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005476/0.2779, allocations: 243.8 kB / 453.4 MB, free: 2.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.2801, allocations: 0.5934 MB / 454 MB, free: 1.812 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2801, allocations: 0 / 454 MB, free: 1.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00186/0.282, allocations: 0.6339 MB / 454.7 MB, free: 1.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.282, allocations: 15.42 kB / 454.7 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.282, allocations: 0 / 454.7 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.282, allocations: 0 / 454.7 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000696/0.2827, allocations: 119.8 kB / 454.8 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.2828, allocations: 0 / 454.8 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.2832, allocations: 31.97 kB / 454.8 MB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-05/0.2833, allocations: 31.94 kB / 454.9 MB, free: 0.9805 MB / 382.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.0001616/0.2835, allocations: 121.8 kB / 455 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.627e-05/0.2835, allocations: 7.906 kB / 455 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/0.2858, allocations: 0.7591 MB / 455.7 MB, free: 80 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2858, allocations: 4 kB / 455.8 MB, free: 76 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.2858, allocations: 0 / 455.8 MB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.2858, allocations: 3.984 kB / 455.8 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2178/0.5036, allocations: 1.224 MB / 457 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5037, allocations: 2.781 kB / 457 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005054/0.5042, allocations: 106.1 kB / 457.1 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.161e-06/0.5042, allocations: 2.75 kB / 457.1 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.5043, allocations: 26.22 kB / 457.1 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.5043, allocations: 7.156 kB / 457.1 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.5043, allocations: 5.719 kB / 457.1 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.5059, allocations: 0.6144 MB / 457.7 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.568e-05/0.5059, allocations: 85.83 kB / 457.8 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.506, allocations: 4.875 kB / 457.8 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.5064, allocations: 38.28 kB / 457.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.887e-05/0.5064, allocations: 19.27 kB / 457.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.5065, allocations: 29.52 kB / 457.9 MB, free: 44.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.664e-05/0.5065, allocations: 84.42 kB / 458 MB, free: 44.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.71e-07/0.5065, allocations: 0 / 458 MB, free: 44.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001602/0.5081, allocations: 0.647 MB / 458.6 MB, free: 44.52 MB / 382.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.002933/0.5111, allocations: 311.5 kB / 458.9 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.5122, allocations: 481.7 kB / 459.4 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5122, allocations: 0 / 459.4 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004906/0.5127, allocations: 227.2 kB / 459.6 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.513, allocations: 9.312 kB / 459.6 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.5153, allocations: 0.6005 MB / 460.2 MB, free: 44.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.5155, allocations: 0.6936 MB / 460.9 MB, free: 43.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005111/0.516, allocations: 132.1 kB / 461.1 MB, free: 43.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003022/0.5163, allocations: 83.42 kB / 461.2 MB, free: 43.5 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5163, allocations: 0 / 461.2 MB, free: 43.5 MB / 382.1 MB Notification: Performance of Templates: time 0.07962/0.5959, allocations: 57.02 MB / 0.506 GB, free: 15.48 MB / 382.1 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/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