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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002753/0.002753, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 258.3 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2219/0.2219, allocations: 44.93 MB / 359.6 MB, free: 6.148 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 55.91 kB / 0.4938 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.323, allocations: 65.48 MB / 0.5577 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001975/0.3249, allocations: 0.5148 MB / 0.5582 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008347/0.3258, allocations: 386.5 kB / 0.5586 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.416e-05/0.3258, allocations: 0 / 0.5586 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.511e-05/0.3258, allocations: 0 / 0.5586 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.763e-05/0.3259, allocations: 7.938 kB / 0.5586 GB, free: 6.656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000558/0.3264, allocations: 135.4 kB / 0.5587 GB, free: 6.527 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.59e-05/0.3265, allocations: 27.86 kB / 0.5588 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.892e-05/0.3265, allocations: 0 / 0.5588 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.78e-05/0.3265, allocations: 19.92 kB / 0.5588 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.807e-05/0.3266, allocations: 19.92 kB / 0.5588 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.3266, allocations: 0 / 0.5588 GB, free: 6.461 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.3269, allocations: 139.8 kB / 0.5589 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.87e-05/0.3269, allocations: 15.97 kB / 0.5589 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.3269, allocations: 11.88 kB / 0.559 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.3272, allocations: 117.8 kB / 0.5591 GB, free: 6.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3272, allocations: 3.938 kB / 0.5591 GB, free: 6.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3272, allocations: 0 / 0.5591 GB, free: 6.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.3272, allocations: 0 / 0.5591 GB, free: 6.18 MB / 398.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.0004469/0.3276, allocations: 293.9 kB / 0.5593 GB, free: 5.863 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.3277, allocations: 12.03 kB / 0.5594 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.3e-05/0.3277, allocations: 4.188 kB / 0.5594 GB, free: 5.848 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.276e-05/0.3277, allocations: 38.73 kB / 0.5594 GB, free: 5.801 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.896e-05/0.3278, allocations: 4.938 kB / 0.5594 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.994e-05/0.3279, allocations: 106.5 kB / 0.5595 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.3279, allocations: 8.375 kB / 0.5595 GB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.211e-05/0.3279, allocations: 4.375 kB / 0.5595 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.328, allocations: 61.73 kB / 0.5596 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.328, allocations: 0 / 0.5596 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.3281, allocations: 0 / 0.5596 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3281, allocations: 4 kB / 0.5596 GB, free: 5.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.3281, allocations: 27.98 kB / 0.5596 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.3283, allocations: 148.7 kB / 0.5598 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.3286, allocations: 58.52 kB / 0.5598 GB, free: 5.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.08e-05/0.3286, allocations: 32.78 kB / 0.5598 GB, free: 5.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002533/0.3289, allocations: 31.95 kB / 0.5599 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.3289, allocations: 38.5 kB / 0.5599 GB, free: 5.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.3289, allocations: 0 / 0.5599 GB, free: 5.191 MB / 398.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.1427/0.4716, allocations: 6.383 MB / 0.5661 GB, free: 14.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.4717, allocations: 55.41 kB / 0.5662 GB, free: 14.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.341e-05/0.4717, allocations: 105.8 kB / 0.5663 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.399e-05/0.4718, allocations: 29.7 kB / 0.5663 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.4718, allocations: 80.14 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.4719, allocations: 63.44 kB / 0.5665 GB, free: 14.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/0.4721, allocations: 85.59 kB / 0.5665 GB, free: 14.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4723, allocations: 322.8 kB / 0.5668 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00059/0.4729, allocations: 235.8 kB / 0.5671 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.4735, allocations: 236 kB / 0.5673 GB, free: 13.52 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.4757, allocations: 0.5575 MB / 0.5678 GB, free: 12.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4757, allocations: 4 kB / 0.5678 GB, free: 12.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001994/0.4777, allocations: 0.6084 MB / 0.5684 GB, free: 12.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.4777, allocations: 4 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.4777, allocations: 3.938 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.4778, allocations: 4 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/0.4785, allocations: 111.8 kB / 0.5686 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.4785, allocations: 0 / 0.5686 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.479, allocations: 23.97 kB / 0.5686 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.304e-05/0.4791, allocations: 35.88 kB / 0.5686 GB, free: 12.17 MB / 414.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.0001788/0.4793, allocations: 121.8 kB / 0.5687 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.292e-05/0.4793, allocations: 7.953 kB / 0.5687 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/0.4817, allocations: 0.7318 MB / 0.5695 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.4817, allocations: 4.469 kB / 0.5695 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4817, allocations: 0 / 0.5695 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.4817, allocations: 3.938 kB / 0.5695 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004475/0.4862, allocations: 1.071 MB / 0.5705 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.4862, allocations: 0 / 0.5705 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006188/0.4868, allocations: 107.7 kB / 0.5706 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.4868, allocations: 4 kB / 0.5706 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.675e-05/0.4868, allocations: 27.95 kB / 0.5706 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.4868, allocations: 4 kB / 0.5706 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4868, allocations: 0 / 0.5706 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.4887, allocations: 0.5908 MB / 0.5712 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.088e-05/0.4887, allocations: 7.953 kB / 0.5712 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.268e-05/0.4888, allocations: 4 kB / 0.5712 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.4893, allocations: 31.95 kB / 0.5713 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.4893, allocations: 11.98 kB / 0.5713 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.113e-05/0.4894, allocations: 35.89 kB / 0.5713 GB, free: 9.293 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.833e-05/0.4894, allocations: 87.28 kB / 0.5714 GB, free: 9.207 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4894, allocations: 0 / 0.5714 GB, free: 9.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001847/0.4913, allocations: 0.6441 MB / 0.572 GB, free: 8.562 MB / 414.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.005708/0.497, allocations: 1.316 MB / 0.5733 GB, free: 7.199 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.4983, allocations: 439.5 kB / 0.5737 GB, free: 6.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4983, allocations: 4 kB / 0.5737 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005754/0.4988, allocations: 199.3 kB / 0.5739 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.4992, allocations: 15.88 kB / 0.5739 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.5029, allocations: 0.6205 MB / 0.5745 GB, free: 5.875 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.46e-05/0.503, allocations: 79.56 kB / 0.5746 GB, free: 5.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004404/0.5035, allocations: 125 kB / 0.5747 GB, free: 5.648 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003817/0.5038, allocations: 99.27 kB / 0.5748 GB, free: 5.551 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5038, allocations: 0 / 0.5748 GB, free: 5.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09785/0.6017, allocations: 59.89 MB / 0.6333 GB, free: 9.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.46, allocations: 4 kB / 0.6333 GB, free: 9.77 MB / 478.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.758135795942508]