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.00116/0.00116, allocations: 117.1 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2019/0.2019, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 75.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3494/0.351, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002005/0.3531, allocations: 0.5302 MB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.354, allocations: 409.2 kB / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.394e-05/0.354, allocations: 1.312 kB / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.3541, allocations: 0 / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.302e-05/0.3541, allocations: 3.938 kB / 0.5314 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.3547, allocations: 140.7 kB / 0.5315 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.28e-05/0.3548, allocations: 31.77 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.3549, allocations: 9.188 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.3549, allocations: 4.719 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.767e-05/0.355, allocations: 20.64 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.355, allocations: 3.094 kB / 0.5316 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.3553, allocations: 158.6 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.746e-05/0.3553, allocations: 9.797 kB / 0.5318 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.022e-05/0.3554, allocations: 21.25 kB / 0.5318 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.3556, allocations: 119.1 kB / 0.5319 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3556, allocations: 8 kB / 0.5319 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3556, allocations: 0 / 0.5319 GB, free: 12.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3557, allocations: 0 / 0.5319 GB, free: 12.38 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.0004648/0.3561, allocations: 361.6 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.3562, allocations: 10.44 kB / 0.5323 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.917e-05/0.3563, allocations: 36.03 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.188e-05/0.3563, allocations: 7.375 kB / 0.5323 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.3564, allocations: 166 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.3564, allocations: 2 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.3565, allocations: 11.56 kB / 0.5325 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.3566, allocations: 54.53 kB / 0.5325 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.3566, allocations: 5.891 kB / 0.5325 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.3567, allocations: 4 kB / 0.5325 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.3567, allocations: 3.938 kB / 0.5325 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.431e-05/0.3567, allocations: 31.25 kB / 0.5326 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001938/0.3569, allocations: 173.8 kB / 0.5327 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.3572, allocations: 61.92 kB / 0.5328 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.3572, allocations: 32.03 kB / 0.5328 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002636/0.3575, allocations: 101 kB / 0.5329 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.3575, allocations: 35.88 kB / 0.533 GB, free: 11.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.954e-06/0.3576, allocations: 0 / 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.1383/0.4958, allocations: 6.384 MB / 0.5392 GB, free: 7.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/0.4959, allocations: 57.69 kB / 0.5393 GB, free: 7.633 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.018e-05/0.496, allocations: 104.6 kB / 0.5394 GB, free: 7.527 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.822e-05/0.4961, allocations: 31.23 kB / 0.5394 GB, free: 7.492 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.908e-05/0.4962, allocations: 80.14 kB / 0.5395 GB, free: 7.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.4963, allocations: 63.94 kB / 0.5395 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001943/0.4965, allocations: 83.88 kB / 0.5396 GB, free: 7.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4967, allocations: 324.2 kB / 0.5399 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006744/0.4973, allocations: 238 kB / 0.5401 GB, free: 6.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/0.498, allocations: 225.6 kB / 0.5403 GB, free: 6.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002394/0.5004, allocations: 0.5638 MB / 0.5409 GB, free: 6.434 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5004, allocations: 3.938 kB / 0.5409 GB, free: 6.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001934/0.5024, allocations: 0.5984 MB / 0.5415 GB, free: 6.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.5024, allocations: 9.312 kB / 0.5415 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5024, allocations: 3.984 kB / 0.5415 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.5025, allocations: 1.125 kB / 0.5415 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006917/0.5031, allocations: 108.4 kB / 0.5416 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.5032, allocations: 1.406 kB / 0.5416 GB, free: 6.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004634/0.5036, allocations: 23.53 kB / 0.5416 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.596e-05/0.5037, allocations: 32.38 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.0001652/0.5039, allocations: 129 kB / 0.5418 GB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.504, allocations: 8.188 kB / 0.5418 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.5061, allocations: 0.7315 MB / 0.5425 GB, free: 5.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.5062, allocations: 4 kB / 0.5425 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.5062, allocations: 8 kB / 0.5425 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5062, allocations: 3.984 kB / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004132/0.5103, allocations: 1.156 MB / 0.5436 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.5103, allocations: 8.031 kB / 0.5437 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/0.5109, allocations: 95.8 kB / 0.5437 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.5109, allocations: 4 kB / 0.5438 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.511, allocations: 27.95 kB / 0.5438 GB, free: 3.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.511, allocations: 4 kB / 0.5438 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.511, allocations: 0 / 0.5438 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/0.5127, allocations: 0.586 MB / 0.5444 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.5127, allocations: 85.02 kB / 0.5444 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.5128, allocations: 8.469 kB / 0.5444 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.5132, allocations: 23.95 kB / 0.5445 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.791e-05/0.5133, allocations: 15.98 kB / 0.5445 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.776e-05/0.5133, allocations: 27.95 kB / 0.5445 GB, free: 3.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.197e-05/0.5134, allocations: 95.16 kB / 0.5446 GB, free: 2.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5134, allocations: 3.938 kB / 0.5446 GB, free: 2.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001712/0.5151, allocations: 0.6445 MB / 0.5452 GB, free: 2.301 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.005151/0.5203, allocations: 1.303 MB / 0.5465 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.5215, allocations: 454.5 kB / 0.5469 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5215, allocations: 0 / 0.5469 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005173/0.522, allocations: 208.1 kB / 0.5471 GB, free: 312 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.5224, allocations: 12 kB / 0.5471 GB, free: 300 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003455/0.5258, allocations: 0.6128 MB / 0.5477 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.5261, allocations: 0.7004 MB / 0.5484 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003903/0.5265, allocations: 116.9 kB / 0.5485 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.5268, allocations: 107.3 kB / 0.5486 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5268, allocations: 0 / 0.5486 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09857/0.6254, allocations: 58.75 MB / 0.606 GB, free: 3.914 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/8.548, allocations: 22.95 kB / 0.606 GB, free: 3.898 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches