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.001162/0.001162, allocations: 118.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 201.2 kB / 18.73 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2079/0.2079, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3372, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001471/0.3387, allocations: 0.5343 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000674/0.3394, allocations: 415 kB / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.813e-05/0.3394, allocations: 0 / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.3394, allocations: 0 / 0.5314 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.108e-05/0.3395, allocations: 3.938 kB / 0.5314 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004176/0.3399, allocations: 130.5 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.948e-05/0.34, allocations: 28.33 kB / 0.5316 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.788e-05/0.34, allocations: 12.39 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.146e-05/0.34, allocations: 9.406 kB / 0.5316 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.219e-05/0.3401, allocations: 21.27 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.3401, allocations: 2.812 kB / 0.5316 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002354/0.3403, allocations: 163.2 kB / 0.5318 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.3404, allocations: 5.141 kB / 0.5318 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.079e-05/0.3404, allocations: 20.55 kB / 0.5318 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.3406, allocations: 118.9 kB / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3406, allocations: 0 / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3406, allocations: 0 / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.3406, 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.0003989/0.341, allocations: 370.8 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3411, allocations: 13.09 kB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.3411, allocations: 32.38 kB / 0.5323 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.55e-05/0.3411, allocations: 7.75 kB / 0.5323 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.894e-05/0.3412, allocations: 162 kB / 0.5325 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.3412, allocations: 9.859 kB / 0.5325 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.3413, allocations: 12.23 kB / 0.5325 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.3414, allocations: 55.03 kB / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3414, allocations: 0 / 0.5325 GB, free: 11.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.3414, allocations: 5 kB / 0.5325 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3414, allocations: 2.156 kB / 0.5325 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.117e-05/0.3415, allocations: 31.09 kB / 0.5326 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.3417, allocations: 183.2 kB / 0.5328 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.3419, allocations: 56.14 kB / 0.5328 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.335e-05/0.3419, allocations: 21.02 kB / 0.5328 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002456/0.3422, allocations: 109.7 kB / 0.5329 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.3422, allocations: 39.88 kB / 0.533 GB, free: 11.26 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.3422, allocations: 0 / 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.1422/0.4844, allocations: 6.37 MB / 0.5392 GB, free: 7.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.4845, allocations: 57.64 kB / 0.5392 GB, free: 7.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.683e-05/0.4845, allocations: 96.73 kB / 0.5393 GB, free: 7.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.4846, allocations: 33.7 kB / 0.5394 GB, free: 7.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.4846, allocations: 85.2 kB / 0.5395 GB, free: 7.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.544e-05/0.4847, allocations: 66.83 kB / 0.5395 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.4849, allocations: 89.28 kB / 0.5396 GB, free: 7.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.485, allocations: 325.3 kB / 0.5399 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005465/0.4856, allocations: 225.2 kB / 0.5401 GB, free: 6.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005459/0.4861, allocations: 229.2 kB / 0.5403 GB, free: 6.75 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/0.4882, allocations: 0.5639 MB / 0.5409 GB, free: 6.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.4882, allocations: 7.938 kB / 0.5409 GB, free: 6.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001831/0.4901, allocations: 0.6026 MB / 0.5415 GB, free: 6.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4901, allocations: 5.25 kB / 0.5415 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.4901, allocations: 0 / 0.5415 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.4901, allocations: 1.438 kB / 0.5415 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006607/0.4908, allocations: 111.9 kB / 0.5416 GB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/0.4908, allocations: 5.422 kB / 0.5416 GB, free: 6.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.4913, allocations: 23.55 kB / 0.5416 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/0.4913, allocations: 36.25 kB / 0.5417 GB, free: 6.039 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.0001463/0.4915, allocations: 126.2 kB / 0.5418 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.336e-05/0.4916, allocations: 7.031 kB / 0.5418 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002106/0.4937, allocations: 0.7386 MB / 0.5425 GB, free: 5.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.4937, allocations: 4 kB / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4937, allocations: 0 / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.4937, allocations: 0 / 0.5425 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.4976, allocations: 1.157 MB / 0.5436 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/0.4977, allocations: 4 kB / 0.5437 GB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/0.4982, allocations: 99.98 kB / 0.5437 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.4982, allocations: 8 kB / 0.5438 GB, free: 3.863 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.4983, allocations: 23.95 kB / 0.5438 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.4983, allocations: 4 kB / 0.5438 GB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4983, allocations: 4 kB / 0.5438 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/0.5, allocations: 0.5781 MB / 0.5444 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.5, allocations: 89.02 kB / 0.5444 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.5001, allocations: 8 kB / 0.5444 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004011/0.5005, allocations: 27.95 kB / 0.5445 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.762e-05/0.5005, allocations: 15.92 kB / 0.5445 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.5006, allocations: 31.95 kB / 0.5445 GB, free: 3.031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.924e-05/0.5006, allocations: 83.22 kB / 0.5446 GB, free: 2.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5006, allocations: 0 / 0.5446 GB, free: 2.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001714/0.5023, allocations: 0.6484 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.005262/0.5076, allocations: 1.306 MB / 0.5465 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.5088, allocations: 449.7 kB / 0.5469 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5089, allocations: 0 / 0.5469 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.5094, allocations: 208.1 kB / 0.5471 GB, free: 316 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002991/0.5097, allocations: 19.98 kB / 0.5471 GB, free: 296 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003216/0.5129, 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.0003279/0.5133, allocations: 0.6926 MB / 0.5484 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004302/0.5137, allocations: 133 kB / 0.5486 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003415/0.5141, allocations: 95.28 kB / 0.5486 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.5141, allocations: 0 / 0.5486 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08856/0.6026, allocations: 58.77 MB / 0.606 GB, free: 3.895 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.898/8.501, allocations: 10.28 kB / 0.606 GB, free: 3.887 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