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.001371/0.001371, allocations: 122.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.001102/0.001102, allocations: 202 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.372/1.372, 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.2101/0.2101, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3228, allocations: 62.44 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001632/0.3245, allocations: 0.5325 MB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007938/0.3253, allocations: 413.6 kB / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.959e-05/0.3253, allocations: 0 / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.3254, allocations: 0 / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.29e-05/0.3254, allocations: 5.219 kB / 0.5314 GB, free: 12.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.3259, allocations: 139.9 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.582e-05/0.326, allocations: 27.95 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.87e-05/0.326, allocations: 1.469 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.363e-05/0.3261, allocations: 10.47 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.359e-05/0.3261, allocations: 25.31 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.3262, allocations: 1.75 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002673/0.3264, allocations: 159 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.378e-05/0.3265, allocations: 6.406 kB / 0.5318 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.616e-05/0.3265, allocations: 14.44 kB / 0.5318 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.3267, allocations: 131.2 kB / 0.5319 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3267, allocations: 0 / 0.5319 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3267, allocations: 0 / 0.5319 GB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.3267, allocations: 1.562 kB / 0.5319 GB, free: 12.39 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.0004652/0.3272, allocations: 378.4 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3273, allocations: 9.406 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.3273, allocations: 34.73 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/0.3273, allocations: 5.875 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.3275, allocations: 164.3 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.3275, allocations: 11.72 kB / 0.5325 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.3275, allocations: 3.312 kB / 0.5325 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000126/0.3276, allocations: 63.73 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.3277, allocations: 0 / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.3277, allocations: 0 / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.3277, allocations: 0 / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.305e-05/0.3278, allocations: 33.92 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001949/0.328, allocations: 168 kB / 0.5328 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.3282, allocations: 63.11 kB / 0.5328 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.163e-05/0.3283, allocations: 23.84 kB / 0.5328 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/0.3285, allocations: 106.6 kB / 0.5329 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.3286, allocations: 38.48 kB / 0.533 GB, free: 11.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3286, allocations: 1.375 kB / 0.533 GB, free: 11.25 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.1302/0.4588, allocations: 6.385 MB / 0.5392 GB, free: 7.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.4588, allocations: 52.5 kB / 0.5393 GB, free: 7.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.789e-05/0.4589, allocations: 104.8 kB / 0.5394 GB, free: 7.531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.459, allocations: 25.7 kB / 0.5394 GB, free: 7.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.354e-05/0.459, allocations: 86.17 kB / 0.5395 GB, free: 7.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.4591, allocations: 66.36 kB / 0.5395 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.4593, allocations: 85.31 kB / 0.5396 GB, free: 7.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4594, allocations: 328.8 kB / 0.5399 GB, free: 6.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005441/0.4599, allocations: 229.4 kB / 0.5401 GB, free: 6.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000531/0.4605, allocations: 234.1 kB / 0.5404 GB, free: 6.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.4625, allocations: 0.5592 MB / 0.5409 GB, free: 6.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4625, allocations: 5.188 kB / 0.5409 GB, free: 6.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001778/0.4643, allocations: 0.6125 MB / 0.5415 GB, free: 6.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4643, allocations: 5.781 kB / 0.5415 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4643, allocations: 0 / 0.5415 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.4644, allocations: 1.125 kB / 0.5415 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.465, allocations: 108.5 kB / 0.5416 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.465, allocations: 0.9688 kB / 0.5416 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004253/0.4655, allocations: 24.03 kB / 0.5417 GB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.236e-05/0.4655, allocations: 35.91 kB / 0.5417 GB, free: 6.012 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.0001542/0.4657, allocations: 125.9 kB / 0.5418 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.46e-05/0.4658, allocations: 7.891 kB / 0.5418 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002033/0.4678, allocations: 0.7333 MB / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.4679, allocations: 0 / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4679, allocations: 256 / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.4679, allocations: 7.969 kB / 0.5425 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003832/0.4717, allocations: 1.161 MB / 0.5437 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4717, allocations: 0 / 0.5437 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005477/0.4723, allocations: 99.8 kB / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.4723, allocations: 0 / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.4724, allocations: 27.95 kB / 0.5438 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.4724, allocations: 3.984 kB / 0.5438 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.4724, allocations: 4 kB / 0.5438 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.474, allocations: 0.5823 MB / 0.5444 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.4741, allocations: 85.06 kB / 0.5444 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.4741, allocations: 7.984 kB / 0.5445 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.4745, allocations: 27.97 kB / 0.5445 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.742e-05/0.4746, allocations: 7.984 kB / 0.5445 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.409e-05/0.4746, allocations: 35.95 kB / 0.5445 GB, free: 3.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.385e-05/0.4747, allocations: 91.14 kB / 0.5446 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4747, allocations: 0 / 0.5446 GB, free: 2.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00164/0.4763, allocations: 0.648 MB / 0.5452 GB, free: 2.293 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.004844/0.4812, allocations: 1.31 MB / 0.5465 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.4824, allocations: 458.2 kB / 0.547 GB, free: 500 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.4824, allocations: 4 kB / 0.547 GB, free: 496 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004973/0.4829, allocations: 199.7 kB / 0.5472 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.4832, allocations: 14.97 kB / 0.5472 GB, free: 284 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.4863, allocations: 0.6205 MB / 0.5478 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.4866, allocations: 0.7003 MB / 0.5485 GB, free: 14.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003913/0.487, allocations: 120.9 kB / 0.5486 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003315/0.4874, allocations: 99.27 kB / 0.5487 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4874, allocations: 0 / 0.5487 GB, free: 14.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09251/0.5799, allocations: 58.57 MB / 0.6059 GB, free: 4.074 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.1/8.68, allocations: 15.86 kB / 0.6059 GB, free: 4.059 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