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.001752/0.001752, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002256/0.002256, allocations: 214 kB / 24.52 MB, free: 3.914 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.445/1.445, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.2261/0.2261, allocations: 46.96 MB / 361.7 MB, free: 4.113 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 63.91 kB / 0.4969 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3128, allocations: 66.03 MB / 0.5613 GB, free: 4.223 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001726/0.3145, allocations: 0.5266 MB / 0.5619 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007983/0.3153, allocations: 374.9 kB / 0.5622 GB, free: 3.324 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.968e-05/0.3153, allocations: 4 kB / 0.5622 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.677e-05/0.3153, allocations: 3.938 kB / 0.5622 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.766e-05/0.3154, allocations: 3.938 kB / 0.5622 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006281/0.316, allocations: 135.4 kB / 0.5624 GB, free: 3.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.119e-05/0.3161, allocations: 19.98 kB / 0.5624 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.974e-05/0.3161, allocations: 7.984 kB / 0.5624 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.3162, allocations: 11.94 kB / 0.5624 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.615e-05/0.3163, allocations: 19.91 kB / 0.5624 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.3163, allocations: 11.94 kB / 0.5624 GB, free: 3.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002761/0.3165, allocations: 139.8 kB / 0.5626 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.3166, allocations: 7.938 kB / 0.5626 GB, free: 2.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.398e-05/0.3166, allocations: 11.92 kB / 0.5626 GB, free: 2.957 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.3168, allocations: 121.8 kB / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3168, allocations: 0 / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3168, allocations: 0 / 0.5627 GB, free: 2.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.3168, allocations: 0 / 0.5627 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.0004872/0.3173, allocations: 293.9 kB / 0.563 GB, free: 2.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.3174, allocations: 15.97 kB / 0.563 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.788e-05/0.3174, allocations: 4.188 kB / 0.563 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.3174, allocations: 42.69 kB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.3175, allocations: 0.9375 kB / 0.563 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.3176, allocations: 110.5 kB / 0.5631 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3176, allocations: 4.312 kB / 0.5631 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.3176, allocations: 8.375 kB / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.3178, allocations: 57.8 kB / 0.5632 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.3178, allocations: 4 kB / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3178, allocations: 0 / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3178, allocations: 0 / 0.5632 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.319e-05/0.3179, allocations: 27.92 kB / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.3181, allocations: 148.7 kB / 0.5634 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.3183, allocations: 54.53 kB / 0.5634 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.981e-05/0.3184, allocations: 21.08 kB / 0.5635 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002619/0.3186, allocations: 39.95 kB / 0.5635 GB, free: 1.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.3186, allocations: 34.5 kB / 0.5635 GB, free: 1.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.202e-06/0.3186, allocations: 0 / 0.5635 GB, free: 1.859 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.1347/0.4533, allocations: 6.387 MB / 0.5698 GB, free: 11.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.4534, allocations: 55.41 kB / 0.5698 GB, free: 11.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.464e-05/0.4534, allocations: 101.9 kB / 0.5699 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.4535, allocations: 25.7 kB / 0.5699 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.586e-05/0.4535, allocations: 88.55 kB / 0.57 GB, free: 11.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.4536, allocations: 67.42 kB / 0.5701 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.4538, allocations: 85.59 kB / 0.5702 GB, free: 10.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.454, allocations: 326.8 kB / 0.5705 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005583/0.4545, allocations: 223.8 kB / 0.5707 GB, free: 10.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005617/0.4551, allocations: 242 kB / 0.5709 GB, free: 10.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002227/0.4573, allocations: 0.5512 MB / 0.5715 GB, free: 9.641 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4573, allocations: 4 kB / 0.5715 GB, free: 9.637 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001931/0.4592, allocations: 0.6123 MB / 0.5721 GB, free: 9.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4593, allocations: 4 kB / 0.5721 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.4593, allocations: 4 kB / 0.5721 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.4593, allocations: 0 / 0.5721 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.46, allocations: 107.8 kB / 0.5722 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.46, allocations: 0 / 0.5722 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004839/0.4605, allocations: 27.95 kB / 0.5722 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.2e-05/0.4606, allocations: 35.88 kB / 0.5722 GB, free: 8.844 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.0001613/0.4607, allocations: 125.7 kB / 0.5724 GB, free: 8.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.4608, allocations: 7.953 kB / 0.5724 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002211/0.463, allocations: 0.7267 MB / 0.5731 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.463, allocations: 7.938 kB / 0.5731 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.463, allocations: 0 / 0.5731 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.463, allocations: 3.938 kB / 0.5731 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004312/0.4673, allocations: 1.074 MB / 0.5741 GB, free: 6.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.4673, allocations: 4.25 kB / 0.5741 GB, free: 6.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006199/0.468, allocations: 91.86 kB / 0.5742 GB, free: 6.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.307e-06/0.468, allocations: 8 kB / 0.5742 GB, free: 6.723 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.543e-05/0.468, allocations: 31.89 kB / 0.5743 GB, free: 6.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.468, allocations: 4 kB / 0.5743 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.468, allocations: 4 kB / 0.5743 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001803/0.4698, allocations: 0.5861 MB / 0.5748 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.785e-05/0.4699, allocations: 7.953 kB / 0.5749 GB, free: 6.055 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.647e-05/0.4699, allocations: 8 kB / 0.5749 GB, free: 6.047 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004563/0.4704, allocations: 27.89 kB / 0.5749 GB, free: 6.02 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.273e-05/0.4704, allocations: 23.97 kB / 0.5749 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.989e-05/0.4705, allocations: 31.89 kB / 0.5749 GB, free: 5.965 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.631e-05/0.4705, allocations: 79.28 kB / 0.575 GB, free: 5.887 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4705, allocations: 0 / 0.575 GB, free: 5.887 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00182/0.4724, allocations: 0.6519 MB / 0.5757 GB, free: 5.234 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.005357/0.4777, allocations: 1.314 MB / 0.5769 GB, free: 3.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.4789, allocations: 436.4 kB / 0.5774 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4789, allocations: 0 / 0.5774 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.4795, allocations: 195.7 kB / 0.5775 GB, free: 3.254 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.4798, allocations: 15.92 kB / 0.5776 GB, free: 3.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003489/0.4833, allocations: 0.6206 MB / 0.5782 GB, free: 2.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.679e-05/0.4834, allocations: 79.5 kB / 0.5782 GB, free: 2.453 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004414/0.4838, allocations: 129 kB / 0.5784 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.4842, allocations: 95.28 kB / 0.5784 GB, free: 2.23 MB / 414.1 MB Notification: Performance of SimCode: time 6.32e-07/0.4842, allocations: 0 / 0.5784 GB, free: 2.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0948/0.579, allocations: 59.9 MB / 0.6369 GB, free: 6.449 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.2, allocations: 8.047 kB / 0.637 GB, free: 6.441 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.29320890409872]