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.001996/0.001996, allocations: 109 kB / 18.49 MB, free: 4.602 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.002285/0.002285, allocations: 213.4 kB / 21.45 MB, free: 1.652 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.537/1.537, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.2234/0.2234, allocations: 44.9 MB / 355.8 MB, free: 12.34 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.001952/0.001952, allocations: 66.09 kB / 0.4885 GB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1337, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001726/0.1354, allocations: 0.5448 MB / 0.553 GB, free: 9.621 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008104/0.1362, allocations: 403.2 kB / 0.5533 GB, free: 9.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.024e-05/0.1362, allocations: 4 kB / 0.5533 GB, free: 9.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.982e-05/0.1363, allocations: 3.938 kB / 0.5533 GB, free: 9.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.335e-05/0.1363, allocations: 3.938 kB / 0.5534 GB, free: 9.211 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004861/0.1368, allocations: 139.8 kB / 0.5535 GB, free: 9.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.444e-05/0.1368, allocations: 23.92 kB / 0.5535 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.566e-05/0.1369, allocations: 0 / 0.5535 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.809e-05/0.1369, allocations: 23.91 kB / 0.5535 GB, free: 9.027 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.998e-05/0.137, allocations: 19.92 kB / 0.5535 GB, free: 9.008 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.137, allocations: 3.938 kB / 0.5536 GB, free: 9.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002694/0.1373, allocations: 159.8 kB / 0.5537 GB, free: 8.848 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.1373, allocations: 8 kB / 0.5537 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.1373, allocations: 15.86 kB / 0.5537 GB, free: 8.824 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.1375, allocations: 127.6 kB / 0.5539 GB, free: 8.699 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1375, allocations: 0 / 0.5539 GB, free: 8.699 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1375, allocations: 0 / 0.5539 GB, free: 8.699 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1375, allocations: 0 / 0.5539 GB, free: 8.699 MB / 414.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.0005572/0.1381, allocations: 375 kB / 0.5542 GB, free: 8.285 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.1381, allocations: 12.03 kB / 0.5542 GB, free: 8.273 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.929e-05/0.1381, allocations: 4.188 kB / 0.5542 GB, free: 8.27 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.101e-05/0.1382, allocations: 38.69 kB / 0.5543 GB, free: 8.223 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.1382, allocations: 0.9375 kB / 0.5543 GB, free: 8.223 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1384, allocations: 172.3 kB / 0.5544 GB, free: 8.016 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1384, allocations: 4.375 kB / 0.5544 GB, free: 8.012 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.1384, allocations: 4.375 kB / 0.5544 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.1385, allocations: 61.73 kB / 0.5545 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.1386, allocations: 0 / 0.5545 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.1386, allocations: 11.94 kB / 0.5545 GB, free: 7.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1386, allocations: 0 / 0.5545 GB, free: 7.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.222e-05/0.1386, allocations: 27.98 kB / 0.5545 GB, free: 7.902 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001925/0.1388, allocations: 165.7 kB / 0.5547 GB, free: 7.691 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002124/0.139, allocations: 50.59 kB / 0.5547 GB, free: 7.633 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.221e-05/0.1391, allocations: 28.84 kB / 0.5548 GB, free: 7.602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002716/0.1394, allocations: 109.1 kB / 0.5549 GB, free: 7.477 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.1394, allocations: 34.5 kB / 0.5549 GB, free: 7.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.1394, allocations: 0 / 0.5549 GB, free: 7.434 MB / 414.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.1353/0.2747, allocations: 6.384 MB / 0.5611 GB, free: 1.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.2747, allocations: 51.41 kB / 0.5612 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.2748, allocations: 105.8 kB / 0.5613 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.2749, allocations: 33.7 kB / 0.5613 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.506e-05/0.2749, allocations: 80.14 kB / 0.5614 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.275, allocations: 67.42 kB / 0.5615 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/0.2752, allocations: 86.06 kB / 0.5615 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2754, allocations: 322.8 kB / 0.5618 GB, free: 240 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/0.276, allocations: 231.8 kB / 0.5621 GB, free: 8 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005972/0.2766, allocations: 239.7 kB / 0.5623 GB, free: 15.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.2788, allocations: 0.5529 MB / 0.5628 GB, free: 15.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2788, allocations: 7.938 kB / 0.5628 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00193/0.2807, allocations: 0.6077 MB / 0.5634 GB, free: 14.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.75e-05/0.2807, allocations: 4 kB / 0.5634 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2807, allocations: 0 / 0.5634 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.2808, allocations: 7.984 kB / 0.5635 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.2814, allocations: 111.8 kB / 0.5636 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.2814, allocations: 0 / 0.5636 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004541/0.2819, allocations: 27.95 kB / 0.5636 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.489e-05/0.282, allocations: 31.89 kB / 0.5636 GB, free: 14.42 MB / 430.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.0001773/0.2821, allocations: 125.8 kB / 0.5637 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/0.2822, allocations: 7.953 kB / 0.5637 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002232/0.2844, allocations: 0.7299 MB / 0.5645 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.2844, allocations: 4 kB / 0.5645 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2844, allocations: 0 / 0.5645 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2844, allocations: 3.938 kB / 0.5645 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004209/0.2887, allocations: 1.149 MB / 0.5656 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2887, allocations: 0 / 0.5656 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005666/0.2892, allocations: 104.2 kB / 0.5657 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.2892, allocations: 8 kB / 0.5657 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.354e-05/0.2893, allocations: 31.95 kB / 0.5657 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.2893, allocations: 4 kB / 0.5657 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.2893, allocations: 0 / 0.5657 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.2912, allocations: 0.5821 MB / 0.5663 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.2912, allocations: 85.06 kB / 0.5664 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.504e-05/0.2913, allocations: 12 kB / 0.5664 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/0.2917, allocations: 23.95 kB / 0.5664 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.2917, allocations: 19.98 kB / 0.5664 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.821e-05/0.2918, allocations: 31.89 kB / 0.5665 GB, free: 11.36 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.2919, allocations: 83.28 kB / 0.5665 GB, free: 11.28 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2919, allocations: 0 / 0.5665 GB, free: 11.28 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00194/0.2938, allocations: 0.6518 MB / 0.5672 GB, free: 10.62 MB / 430.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.005428/0.2992, allocations: 1.315 MB / 0.5685 GB, free: 9.262 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3005, allocations: 441.8 kB / 0.5689 GB, free: 8.832 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3005, allocations: 0 / 0.5689 GB, free: 8.832 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005586/0.3011, allocations: 191.7 kB / 0.5691 GB, free: 8.645 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3014, allocations: 20.3 kB / 0.5691 GB, free: 8.625 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00342/0.3048, allocations: 0.6159 MB / 0.5697 GB, free: 7.953 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3052, allocations: 0.6965 MB / 0.5704 GB, free: 7.227 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.3056, allocations: 124.9 kB / 0.5705 GB, free: 7.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003467/0.3059, allocations: 103.2 kB / 0.5706 GB, free: 6.996 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3059, allocations: 0 / 0.5706 GB, free: 6.996 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4013/0.7073, allocations: 58.61 MB / 0.6278 GB, free: 17.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.054/9.761, allocations: 13.89 kB / 0.6278 GB, free: 17.57 MB / 446.1 MB " [Timeout remaining time 650] (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: 13.013683622993995]