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.001696/0.001696, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002058/0.002058, allocations: 210.5 kB / 23.73 MB, free: 4.387 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2247/0.2247, allocations: 46.95 MB / 360.9 MB, free: 4.027 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.002255/0.002255, allocations: 71.89 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3714, allocations: 66.03 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.00227/0.3737, allocations: 0.5294 MB / 0.5611 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3748, allocations: 378.8 kB / 0.5615 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.898e-05/0.3748, allocations: 0 / 0.5615 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.519e-05/0.3749, allocations: 3.938 kB / 0.5615 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.098e-05/0.3749, allocations: 0 / 0.5615 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007164/0.3756, allocations: 147.3 kB / 0.5616 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.326e-05/0.3757, allocations: 27.91 kB / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.43e-05/0.3757, allocations: 0 / 0.5616 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.868e-05/0.3758, allocations: 15.98 kB / 0.5616 GB, free: 3.137 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.394e-05/0.3758, allocations: 15.86 kB / 0.5617 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.3759, allocations: 0 / 0.5617 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002738/0.3761, allocations: 139.8 kB / 0.5618 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.3761, allocations: 7.984 kB / 0.5618 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.401e-05/0.3762, allocations: 11.94 kB / 0.5618 GB, free: 2.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.3764, allocations: 121.6 kB / 0.5619 GB, free: 2.848 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3764, allocations: 7.984 kB / 0.5619 GB, free: 2.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3764, allocations: 0 / 0.5619 GB, free: 2.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.3764, allocations: 0 / 0.5619 GB, free: 2.84 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.0004842/0.3769, allocations: 293.9 kB / 0.5622 GB, free: 2.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3769, allocations: 8.031 kB / 0.5622 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.377, allocations: 38.73 kB / 0.5623 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.377, allocations: 0.9375 kB / 0.5623 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.3771, allocations: 114.5 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3771, allocations: 4.312 kB / 0.5624 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.3772, allocations: 4.375 kB / 0.5624 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.3774, allocations: 61.98 kB / 0.5624 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3774, allocations: 4 kB / 0.5624 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.3774, allocations: 4 kB / 0.5624 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.3774, allocations: 0 / 0.5624 GB, free: 2.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.737e-05/0.3775, allocations: 23.98 kB / 0.5625 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.3777, allocations: 144.6 kB / 0.5626 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.3779, allocations: 54.5 kB / 0.5627 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.916e-05/0.378, allocations: 20.84 kB / 0.5627 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.3782, allocations: 35.95 kB / 0.5627 GB, free: 1.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3783, allocations: 42.5 kB / 0.5628 GB, free: 1.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.3783, allocations: 0 / 0.5628 GB, free: 1.871 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.1377/0.516, allocations: 6.378 MB / 0.569 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.453e-05/0.516, allocations: 59.34 kB / 0.569 GB, free: 11.38 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.5162, allocations: 105.8 kB / 0.5691 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.687e-05/0.5162, allocations: 29.7 kB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.5163, allocations: 80.14 kB / 0.5692 GB, free: 11.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.5164, allocations: 71.41 kB / 0.5693 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.5165, allocations: 89.59 kB / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.5167, allocations: 326.8 kB / 0.5697 GB, free: 10.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005538/0.5172, allocations: 227.8 kB / 0.5699 GB, free: 10.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.5178, allocations: 234.7 kB / 0.5702 GB, free: 10.21 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.5198, allocations: 0.5513 MB / 0.5707 GB, free: 9.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.5198, allocations: 0 / 0.5707 GB, free: 9.656 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00187/0.5217, allocations: 0.6121 MB / 0.5713 GB, free: 9.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.5217, allocations: 4 kB / 0.5713 GB, free: 9.035 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.5217, allocations: 7.938 kB / 0.5713 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.5217, allocations: 0 / 0.5713 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006328/0.5224, allocations: 107.8 kB / 0.5714 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.5224, allocations: 0 / 0.5714 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004039/0.5228, allocations: 23.95 kB / 0.5714 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.28e-05/0.5229, allocations: 31.95 kB / 0.5715 GB, free: 8.867 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.0001626/0.523, allocations: 129.7 kB / 0.5716 GB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.5231, allocations: 7.953 kB / 0.5716 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.5252, allocations: 0.7241 MB / 0.5723 GB, free: 7.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.5252, allocations: 4 kB / 0.5723 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.5252, allocations: 4.469 kB / 0.5723 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5252, allocations: 3.938 kB / 0.5723 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003959/0.5291, allocations: 1.071 MB / 0.5734 GB, free: 6.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.5292, allocations: 8 kB / 0.5734 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005405/0.5297, allocations: 103.8 kB / 0.5735 GB, free: 6.738 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.5297, allocations: 8.125 kB / 0.5735 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.5297, allocations: 27.95 kB / 0.5735 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.161e-06/0.5298, allocations: 4 kB / 0.5735 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.5298, allocations: 7.938 kB / 0.5735 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001676/0.5314, allocations: 0.5815 MB / 0.5741 GB, free: 6.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.683e-05/0.5315, allocations: 15.95 kB / 0.5741 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.122e-05/0.5315, allocations: 4 kB / 0.5741 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.5319, allocations: 27.95 kB / 0.5741 GB, free: 6.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.5319, allocations: 15.92 kB / 0.5741 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.277e-05/0.532, allocations: 31.95 kB / 0.5742 GB, free: 5.984 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.391e-05/0.532, allocations: 87.2 kB / 0.5742 GB, free: 5.898 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.532, allocations: 0 / 0.5742 GB, free: 5.898 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001726/0.5338, allocations: 0.6519 MB / 0.5749 GB, free: 5.246 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.004934/0.5387, allocations: 1.302 MB / 0.5762 GB, free: 3.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001179/0.5399, allocations: 439.5 kB / 0.5766 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5399, allocations: 0 / 0.5766 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.5404, allocations: 191.7 kB / 0.5768 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.5407, allocations: 12.38 kB / 0.5768 GB, free: 3.266 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003055/0.5437, allocations: 0.624 MB / 0.5774 GB, free: 2.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.428e-05/0.5438, allocations: 83.56 kB / 0.5775 GB, free: 2.473 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004617/0.5443, allocations: 125 kB / 0.5776 GB, free: 2.348 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.5446, allocations: 95.28 kB / 0.5777 GB, free: 2.254 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5446, allocations: 0 / 0.5777 GB, free: 2.254 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/0.6483, allocations: 60.24 MB / 0.6365 GB, free: 6.109 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.04, allocations: 14.19 kB / 0.6365 GB, free: 6.098 MB / 478.1 MB " [Timeout remaining time 648] (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: 15.006360276136547]