Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001892/0.001892, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002344/0.002344, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.475/1.475, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2379/0.2379, allocations: 46.92 MB / 357.1 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 71.91 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1203, allocations: 66 MB / 0.5554 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001647/0.122, allocations: 0.5281 MB / 0.5559 GB, free: 5.348 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007637/0.1227, allocations: 411.3 kB / 0.5563 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.43e-05/0.1227, allocations: 0 / 0.5563 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.1228, allocations: 7.938 kB / 0.5563 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.263e-05/0.1228, allocations: 4 kB / 0.5563 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.1232, allocations: 135.5 kB / 0.5564 GB, free: 4.797 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.997e-05/0.1233, allocations: 27.91 kB / 0.5564 GB, free: 4.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.161e-05/0.1233, allocations: 0 / 0.5564 GB, free: 4.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.1233, allocations: 19.92 kB / 0.5565 GB, free: 4.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.221e-05/0.1234, allocations: 15.92 kB / 0.5565 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.726e-06/0.1234, allocations: 0 / 0.5565 GB, free: 4.734 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002736/0.1237, allocations: 167.8 kB / 0.5566 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.1237, allocations: 8 kB / 0.5566 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.922e-05/0.1237, allocations: 23.84 kB / 0.5567 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.1239, allocations: 115.7 kB / 0.5568 GB, free: 4.426 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.1239, allocations: 0 / 0.5568 GB, free: 4.426 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1239, allocations: 0 / 0.5568 GB, free: 4.426 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1239, allocations: 0 / 0.5568 GB, free: 4.426 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.0004807/0.1244, allocations: 379 kB / 0.5571 GB, free: 4.008 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.1244, allocations: 8.031 kB / 0.5571 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.449e-05/0.1245, allocations: 38.73 kB / 0.5572 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.717e-05/0.1245, allocations: 12.88 kB / 0.5572 GB, free: 3.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.1247, allocations: 172.3 kB / 0.5574 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.662e-06/0.1247, allocations: 384 / 0.5574 GB, free: 3.734 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.1247, allocations: 4.375 kB / 0.5574 GB, free: 3.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.1248, allocations: 57.98 kB / 0.5574 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1248, allocations: 0 / 0.5574 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-06/0.1248, allocations: 0 / 0.5574 GB, free: 3.668 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1248, allocations: 4 kB / 0.5574 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.666e-05/0.1249, allocations: 35.91 kB / 0.5575 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002383/0.1252, allocations: 177.6 kB / 0.5576 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.1254, allocations: 50.56 kB / 0.5577 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.062e-05/0.1254, allocations: 24.84 kB / 0.5577 GB, free: 3.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000274/0.1257, allocations: 105.3 kB / 0.5578 GB, free: 3.199 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.1257, allocations: 42.44 kB / 0.5578 GB, free: 3.148 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.1257, allocations: 0 / 0.5578 GB, free: 3.148 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.1434/0.2691, allocations: 6.374 MB / 0.5641 GB, free: 12.73 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.2691, allocations: 51.41 kB / 0.5641 GB, free: 12.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2692, allocations: 105.8 kB / 0.5642 GB, free: 12.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/0.2693, allocations: 33.64 kB / 0.5642 GB, free: 12.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.811e-05/0.2694, allocations: 80.61 kB / 0.5643 GB, free: 12.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2695, allocations: 67.38 kB / 0.5644 GB, free: 12.37 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.2697, allocations: 97.59 kB / 0.5645 GB, free: 12.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.2698, allocations: 322.8 kB / 0.5648 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005965/0.2704, allocations: 227.8 kB / 0.565 GB, free: 11.72 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/0.271, allocations: 236.9 kB / 0.5652 GB, free: 11.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.2733, allocations: 0.5563 MB / 0.5658 GB, free: 10.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2733, allocations: 0 / 0.5658 GB, free: 10.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001995/0.2753, allocations: 0.6163 MB / 0.5664 GB, free: 10.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.2753, allocations: 4 kB / 0.5664 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.2753, allocations: 0 / 0.5664 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.2753, allocations: 0 / 0.5664 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.276, allocations: 111.8 kB / 0.5665 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.276, allocations: 0 / 0.5665 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/0.2765, allocations: 24.22 kB / 0.5665 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/0.2766, allocations: 31.94 kB / 0.5665 GB, free: 10.14 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.0001796/0.2767, allocations: 125.7 kB / 0.5667 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.07e-05/0.2768, allocations: 7.953 kB / 0.5667 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002298/0.2791, allocations: 0.7279 MB / 0.5674 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2791, allocations: 3.984 kB / 0.5674 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2791, allocations: 0 / 0.5674 GB, free: 9.266 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2791, allocations: 4 kB / 0.5674 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.2835, allocations: 1.161 MB / 0.5685 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.2835, allocations: 0 / 0.5685 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005875/0.284, allocations: 95.86 kB / 0.5686 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.2841, allocations: 0 / 0.5686 GB, free: 7.934 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.643e-05/0.2841, allocations: 31.95 kB / 0.5686 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.437e-06/0.2841, allocations: 7.922 kB / 0.5686 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.2841, allocations: 8.188 kB / 0.5687 GB, free: 7.887 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001819/0.2859, allocations: 0.5767 MB / 0.5692 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.557e-05/0.286, allocations: 85.06 kB / 0.5693 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.453e-05/0.2861, allocations: 15.86 kB / 0.5693 GB, free: 7.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.2865, allocations: 23.97 kB / 0.5693 GB, free: 7.137 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.2865, allocations: 19.98 kB / 0.5694 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.694e-05/0.2866, allocations: 31.95 kB / 0.5694 GB, free: 7.086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.188e-05/0.2866, allocations: 87.2 kB / 0.5695 GB, free: 7 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2866, allocations: 4 kB / 0.5695 GB, free: 6.996 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001857/0.2885, allocations: 0.6441 MB / 0.5701 GB, free: 6.352 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.005608/0.2941, allocations: 1.302 MB / 0.5714 GB, free: 5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.2954, allocations: 447.7 kB / 0.5718 GB, free: 4.566 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.2954, allocations: 0 / 0.5718 GB, free: 4.566 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.296, allocations: 191.8 kB / 0.572 GB, free: 4.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.2963, allocations: 13.66 kB / 0.572 GB, free: 4.367 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.2999, allocations: 0.6245 MB / 0.5726 GB, free: 3.684 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.3002, allocations: 0.6964 MB / 0.5733 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004302/0.3007, allocations: 129.1 kB / 0.5734 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.301, allocations: 99.28 kB / 0.5735 GB, free: 2.727 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.301, allocations: 0 / 0.5735 GB, free: 2.727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3043/0.6054, allocations: 58.58 MB / 0.6307 GB, free: 10.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.638/9.243, allocations: 11.77 kB / 0.6307 GB, free: 10.76 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.289234028197825]