Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001669/0.001669, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2025/0.2025, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3277, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001704/0.3294, allocations: 0.5292 MB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008204/0.3302, allocations: 402.1 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.3303, allocations: 0 / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.347e-05/0.3303, allocations: 3.938 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.086e-05/0.3304, allocations: 4 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.331, allocations: 141 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.042e-05/0.3311, allocations: 23.89 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.774e-05/0.3311, allocations: 6.516 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.342e-05/0.3311, allocations: 8.906 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.434e-05/0.3312, allocations: 20.62 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.3312, allocations: 2.844 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.3315, allocations: 160 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.511e-05/0.3315, allocations: 13.75 kB / 0.5318 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.3315, allocations: 16.09 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.3318, allocations: 132.2 kB / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3318, allocations: 0 / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3318, allocations: 0 / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.3318, allocations: 0 / 0.5319 GB, free: 12.4 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.0004292/0.3322, allocations: 368.5 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3323, allocations: 9.969 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.3323, allocations: 40.19 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.3324, allocations: 6.406 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.3325, allocations: 171.2 kB / 0.5325 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3325, allocations: 2.344 kB / 0.5325 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.514e-05/0.3325, allocations: 7.625 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.3326, allocations: 57.92 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3327, allocations: 1.188 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-06/0.3327, allocations: 0 / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.3327, allocations: 3.938 kB / 0.5326 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.334e-05/0.3328, allocations: 28.89 kB / 0.5326 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.333, allocations: 180.2 kB / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.3332, allocations: 51.25 kB / 0.5328 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.263e-05/0.3332, allocations: 30.69 kB / 0.5328 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/0.3335, allocations: 105.6 kB / 0.5329 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3336, allocations: 39.88 kB / 0.533 GB, free: 11.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 2.595e-06/0.3336, allocations: 7.984 kB / 0.533 GB, free: 11.26 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.1314/0.465, allocations: 6.376 MB / 0.5392 GB, free: 7.719 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.4651, allocations: 58.31 kB / 0.5393 GB, free: 7.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.882e-05/0.4652, allocations: 103.9 kB / 0.5394 GB, free: 7.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.4652, allocations: 31.2 kB / 0.5394 GB, free: 7.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.031e-05/0.4653, allocations: 80.14 kB / 0.5395 GB, free: 7.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.679e-05/0.4654, allocations: 74.56 kB / 0.5395 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001687/0.4656, allocations: 93.5 kB / 0.5396 GB, free: 7.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.4657, allocations: 320.9 kB / 0.5399 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005441/0.4662, allocations: 229.2 kB / 0.5402 GB, free: 6.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.4668, allocations: 230 kB / 0.5404 GB, free: 6.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.4689, allocations: 0.5557 MB / 0.5409 GB, free: 6.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4689, allocations: 3.938 kB / 0.5409 GB, free: 6.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00188/0.4708, allocations: 0.6136 MB / 0.5415 GB, free: 6.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.37e-05/0.4709, allocations: 5.219 kB / 0.5415 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4709, allocations: 1.344 kB / 0.5415 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.4709, allocations: 0 / 0.5415 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006881/0.4716, allocations: 108.9 kB / 0.5416 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.4716, allocations: 1.125 kB / 0.5416 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004537/0.4721, allocations: 27.61 kB / 0.5417 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-05/0.4722, allocations: 36.44 kB / 0.5417 GB, free: 6.023 MB / 398.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.0001694/0.4723, allocations: 125.1 kB / 0.5418 GB, free: 5.895 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.4724, allocations: 8.078 kB / 0.5418 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.4745, allocations: 0.7312 MB / 0.5425 GB, free: 5.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4745, allocations: 7.938 kB / 0.5425 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.4745, allocations: 0 / 0.5425 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4746, allocations: 0 / 0.5425 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004174/0.4787, allocations: 1.149 MB / 0.5437 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.4788, allocations: 4 kB / 0.5437 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005961/0.4794, allocations: 99.84 kB / 0.5438 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.649e-06/0.4794, allocations: 4 kB / 0.5438 GB, free: 3.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.4794, allocations: 27.89 kB / 0.5438 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.4795, allocations: 4 kB / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4795, allocations: 448 / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.4814, allocations: 0.586 MB / 0.5444 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.4815, allocations: 85.06 kB / 0.5444 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.4815, allocations: 12 kB / 0.5445 GB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.4819, allocations: 27.95 kB / 0.5445 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.482, allocations: 15.98 kB / 0.5445 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.879e-05/0.4821, allocations: 27.95 kB / 0.5445 GB, free: 3.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.752e-05/0.4821, allocations: 87.22 kB / 0.5446 GB, free: 2.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4821, allocations: 0 / 0.5446 GB, free: 2.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001972/0.4841, allocations: 0.648 MB / 0.5452 GB, free: 2.324 MB / 398.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.005241/0.4894, allocations: 1.318 MB / 0.5465 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001147/0.4905, allocations: 453.3 kB / 0.547 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4905, allocations: 4 kB / 0.547 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005007/0.4911, allocations: 203.6 kB / 0.5472 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.4914, allocations: 18.95 kB / 0.5472 GB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.4946, allocations: 0.6206 MB / 0.5478 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.4951, allocations: 0.6965 MB / 0.5485 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004129/0.4956, allocations: 120.9 kB / 0.5486 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003258/0.4959, allocations: 99.28 kB / 0.5487 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4959, allocations: 4 kB / 0.5487 GB, free: 14.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08418/0.5801, allocations: 58.56 MB / 0.6059 GB, free: 4.102 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.384, allocations: 11.38 kB / 0.6059 GB, free: 4.094 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.csv","/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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches