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.001336/0.001336, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001528/0.001528, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2262/0.2262, allocations: 44.92 MB / 358.8 MB, free: 6.305 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",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.00218/0.00218, allocations: 71.88 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3004, allocations: 65.47 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001762/0.3021, allocations: 0.5375 MB / 0.5575 GB, free: 7.125 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007965/0.3029, allocations: 416.8 kB / 0.5579 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.303, allocations: 0 / 0.5579 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.692e-05/0.303, allocations: 0 / 0.5579 GB, free: 6.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.794e-05/0.303, allocations: 9 kB / 0.558 GB, free: 6.797 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.3035, allocations: 135.7 kB / 0.5581 GB, free: 6.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.089e-05/0.3035, allocations: 23.92 kB / 0.5581 GB, free: 6.688 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.3036, allocations: 8 kB / 0.5581 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.604e-05/0.3036, allocations: 11.92 kB / 0.5581 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.117e-05/0.3037, allocations: 23.91 kB / 0.5581 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.3037, allocations: 0 / 0.5581 GB, free: 6.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.3039, allocations: 159.8 kB / 0.5583 GB, free: 6.488 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.304, allocations: 15.98 kB / 0.5583 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.19e-05/0.304, allocations: 7.875 kB / 0.5583 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.3042, allocations: 125.7 kB / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3042, allocations: 0 / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3042, allocations: 0 / 0.5584 GB, free: 6.344 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.3042, allocations: 4 kB / 0.5584 GB, free: 6.34 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.0004243/0.3046, allocations: 293.9 kB / 0.5587 GB, free: 6.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3047, allocations: 12.03 kB / 0.5587 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.58e-05/0.3047, allocations: 34.75 kB / 0.5588 GB, free: 5.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.3047, allocations: 12.88 kB / 0.5588 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.3048, allocations: 114.4 kB / 0.5589 GB, free: 5.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3048, allocations: 4.312 kB / 0.5589 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.3049, allocations: 12.36 kB / 0.5589 GB, free: 5.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.305, allocations: 50 kB / 0.559 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.305, allocations: 4 kB / 0.559 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.305, allocations: 4 kB / 0.559 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.305, allocations: 4 kB / 0.559 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.651e-05/0.3051, allocations: 27.97 kB / 0.559 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001785/0.3053, allocations: 144.6 kB / 0.5591 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.3055, allocations: 58.53 kB / 0.5592 GB, free: 5.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.261e-05/0.3055, allocations: 20.86 kB / 0.5592 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002372/0.3058, allocations: 31.95 kB / 0.5592 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3058, allocations: 38.5 kB / 0.5593 GB, free: 5.359 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.3058, allocations: 4 kB / 0.5593 GB, free: 5.355 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.1354/0.4412, allocations: 6.372 MB / 0.5655 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.4412, allocations: 51.41 kB / 0.5655 GB, free: 14.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.34e-05/0.4413, allocations: 106 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.994e-05/0.4414, allocations: 29.7 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.4414, allocations: 88.08 kB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4415, allocations: 75.41 kB / 0.5658 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.4417, allocations: 89.59 kB / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4419, allocations: 323.2 kB / 0.5662 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005677/0.4424, allocations: 227.8 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005754/0.443, allocations: 235.8 kB / 0.5667 GB, free: 13.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.4451, allocations: 0.5533 MB / 0.5672 GB, free: 13.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.4451, allocations: 0 / 0.5672 GB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00191/0.447, allocations: 0.6202 MB / 0.5678 GB, free: 12.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.4471, allocations: 4 kB / 0.5678 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.4471, allocations: 0 / 0.5678 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.4471, allocations: 7.938 kB / 0.5678 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006893/0.4478, allocations: 103.8 kB / 0.5679 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.4478, allocations: 0 / 0.5679 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004441/0.4482, allocations: 27.95 kB / 0.568 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.054e-05/0.4483, allocations: 31.95 kB / 0.568 GB, free: 12.34 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.000166/0.4485, allocations: 129.6 kB / 0.5681 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.488e-05/0.4485, allocations: 7.953 kB / 0.5681 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002189/0.4507, allocations: 0.728 MB / 0.5688 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.4507, allocations: 4 kB / 0.5688 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4507, allocations: 0 / 0.5688 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.4507, allocations: 0 / 0.5688 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/0.455, allocations: 1.117 MB / 0.5699 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.455, allocations: 0 / 0.5699 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005808/0.4555, allocations: 103.8 kB / 0.57 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.4555, allocations: 0 / 0.57 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.4556, allocations: 27.95 kB / 0.57 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.4556, allocations: 7.984 kB / 0.5701 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4556, allocations: 4.125 kB / 0.5701 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.4573, allocations: 0.5826 MB / 0.5706 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.857e-05/0.4574, allocations: 11.95 kB / 0.5706 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.4574, allocations: 7.984 kB / 0.5706 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000418/0.4578, allocations: 27.91 kB / 0.5707 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.4579, allocations: 19.91 kB / 0.5707 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.474e-05/0.4579, allocations: 35.95 kB / 0.5707 GB, free: 9.418 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.458, allocations: 83.22 kB / 0.5708 GB, free: 9.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.458, allocations: 4 kB / 0.5708 GB, free: 9.332 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001792/0.4598, allocations: 0.648 MB / 0.5714 GB, free: 8.684 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.005115/0.4649, allocations: 1.308 MB / 0.5727 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.4661, allocations: 431.5 kB / 0.5731 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4661, allocations: 4 kB / 0.5731 GB, free: 6.902 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005576/0.4667, allocations: 199.7 kB / 0.5733 GB, free: 6.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.467, allocations: 11.98 kB / 0.5733 GB, free: 6.695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.4704, allocations: 0.62 MB / 0.5739 GB, free: 6.016 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.4707, allocations: 0.6965 MB / 0.5746 GB, free: 5.289 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004261/0.4712, allocations: 125 kB / 0.5747 GB, free: 5.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.4715, allocations: 99.28 kB / 0.5748 GB, free: 5.066 MB / 414.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4715, allocations: 7.938 kB / 0.5748 GB, free: 5.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/0.5731, allocations: 58.9 MB / 0.6324 GB, free: 10.22 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.22, allocations: 10.86 kB / 0.6324 GB, free: 10.22 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.26500511704944]