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.001834/0.001834, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002287/0.002287, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.464/1.464, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.2211/0.2211, allocations: 44.92 MB / 359.6 MB, free: 6.367 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.002162/0.002162, allocations: 68.08 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3305, allocations: 65.47 MB / 0.5578 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002259/0.3328, allocations: 0.5418 MB / 0.5583 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009945/0.3338, allocations: 420 kB / 0.5587 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.993e-05/0.3338, allocations: 1.031 kB / 0.5587 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.308e-05/0.3338, allocations: 0 / 0.5587 GB, free: 6.793 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.826e-05/0.3339, allocations: 3.938 kB / 0.5587 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005866/0.3344, allocations: 136.1 kB / 0.5588 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.442e-05/0.3345, allocations: 31.84 kB / 0.5589 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.364e-05/0.3346, allocations: 3.984 kB / 0.5589 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.129e-05/0.3346, allocations: 15.94 kB / 0.5589 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.541e-05/0.3347, allocations: 19.92 kB / 0.5589 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.717e-05/0.3347, allocations: 0 / 0.5589 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002867/0.335, allocations: 159.8 kB / 0.5591 GB, free: 6.434 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.403e-05/0.335, allocations: 4 kB / 0.5591 GB, free: 6.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.181e-05/0.335, allocations: 19.86 kB / 0.5591 GB, free: 6.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.3353, allocations: 121.8 kB / 0.5592 GB, free: 6.293 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3353, allocations: 4 kB / 0.5592 GB, free: 6.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3353, allocations: 0 / 0.5592 GB, free: 6.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.3353, allocations: 0 / 0.5592 GB, free: 6.289 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.0004434/0.3357, allocations: 301.9 kB / 0.5595 GB, free: 5.965 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3358, allocations: 8.031 kB / 0.5595 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.435e-05/0.3358, allocations: 192 / 0.5595 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.582e-05/0.3358, allocations: 34.75 kB / 0.5595 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.844e-05/0.3359, allocations: 0.9375 kB / 0.5595 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.336, allocations: 122.5 kB / 0.5597 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.594e-06/0.336, allocations: 4.312 kB / 0.5597 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.258e-05/0.336, allocations: 4.375 kB / 0.5597 GB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001468/0.3362, allocations: 61.69 kB / 0.5597 GB, free: 5.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3362, allocations: 8 kB / 0.5597 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.3362, allocations: 0 / 0.5597 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.3362, allocations: 0 / 0.5597 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.182e-05/0.3363, allocations: 31.97 kB / 0.5598 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001964/0.3365, allocations: 144.7 kB / 0.5599 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.3367, allocations: 58.58 kB / 0.56 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.07e-05/0.3367, allocations: 16.86 kB / 0.56 GB, free: 5.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002551/0.337, allocations: 39.95 kB / 0.56 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.337, allocations: 34.5 kB / 0.56 GB, free: 5.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.337, allocations: 0 / 0.56 GB, free: 5.305 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.1411/0.4782, allocations: 6.372 MB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.718e-05/0.4782, allocations: 63.39 kB / 0.5663 GB, free: 14.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.434e-05/0.4783, allocations: 101.9 kB / 0.5664 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.4784, allocations: 33.7 kB / 0.5665 GB, free: 14.67 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.4784, allocations: 80.14 kB / 0.5665 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.4785, allocations: 67.42 kB / 0.5666 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.4787, allocations: 89.59 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4789, allocations: 330.6 kB / 0.567 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005792/0.4795, allocations: 227.8 kB / 0.5672 GB, free: 13.87 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005741/0.48, allocations: 232.2 kB / 0.5674 GB, free: 13.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/0.4822, allocations: 0.5565 MB / 0.568 GB, free: 13.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4822, allocations: 4 kB / 0.568 GB, free: 13.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001972/0.4842, allocations: 0.6013 MB / 0.5686 GB, free: 12.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.4842, allocations: 8 kB / 0.5686 GB, free: 12.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4842, allocations: 3.938 kB / 0.5686 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4842, allocations: 0 / 0.5686 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006883/0.4849, allocations: 115.8 kB / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.4849, allocations: 0 / 0.5687 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004387/0.4853, allocations: 27.95 kB / 0.5687 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-05/0.4854, allocations: 39.88 kB / 0.5688 GB, free: 12.29 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.0001706/0.4856, allocations: 109.8 kB / 0.5689 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.4857, allocations: 8.203 kB / 0.5689 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/0.488, allocations: 0.7357 MB / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.488, allocations: 0 / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.488, allocations: 0 / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.488, allocations: 3.938 kB / 0.5696 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/0.4922, allocations: 1.121 MB / 0.5707 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.4922, allocations: 4 kB / 0.5707 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/0.4928, allocations: 104 kB / 0.5708 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.4928, allocations: 4 kB / 0.5708 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.345e-05/0.4928, allocations: 27.94 kB / 0.5708 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4928, allocations: 4 kB / 0.5708 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4928, allocations: 4 kB / 0.5708 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.4946, allocations: 0.5781 MB / 0.5714 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.658e-05/0.4946, allocations: 7.953 kB / 0.5714 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.936e-05/0.4947, allocations: 15.98 kB / 0.5714 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004357/0.4951, allocations: 23.97 kB / 0.5714 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.4952, allocations: 19.91 kB / 0.5715 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.056e-05/0.4952, allocations: 31.89 kB / 0.5715 GB, free: 9.371 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.364e-05/0.4953, allocations: 87.22 kB / 0.5716 GB, free: 9.285 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4953, allocations: 0 / 0.5716 GB, free: 9.285 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001865/0.4971, allocations: 0.648 MB / 0.5722 GB, free: 8.637 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.007877/0.505, allocations: 1.313 MB / 0.5735 GB, free: 7.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.5071, allocations: 435.5 kB / 0.5739 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5071, allocations: 0 / 0.5739 GB, free: 6.852 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008775/0.508, allocations: 192.1 kB / 0.5741 GB, free: 6.664 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.5085, allocations: 26.73 kB / 0.5741 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005212/0.5138, allocations: 0.6124 MB / 0.5747 GB, free: 5.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.5142, allocations: 0.7004 MB / 0.5754 GB, free: 5.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007133/0.515, allocations: 125.2 kB / 0.5755 GB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005326/0.5155, allocations: 99.28 kB / 0.5756 GB, free: 5.012 MB / 414.1 MB Notification: Performance of SimCode: time 6.02e-07/0.5155, allocations: 0 / 0.5756 GB, free: 5.012 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1138/0.6293, allocations: 58.93 MB / 0.6332 GB, free: 10.15 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/12.18, allocations: 14.86 kB / 0.6332 GB, free: 10.14 MB / 478.1 MB " [Timeout remaining time 648] (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.30520439898828]