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.00134/0.00134, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 79.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3141/0.3163, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001498/0.3179, allocations: 0.5441 MB / 0.5311 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007232/0.3186, allocations: 403.3 kB / 0.5315 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.3186, allocations: 1.312 kB / 0.5315 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.196e-05/0.3187, allocations: 0 / 0.5315 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.086e-05/0.3187, allocations: 3.938 kB / 0.5315 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004361/0.3191, allocations: 140.2 kB / 0.5317 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.945e-05/0.3192, allocations: 32.25 kB / 0.5317 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.521e-05/0.3193, allocations: 2.656 kB / 0.5317 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.479e-05/0.3193, allocations: 16.98 kB / 0.5317 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.417e-05/0.3193, allocations: 16.67 kB / 0.5317 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.3194, allocations: 2.344 kB / 0.5317 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002609/0.3196, allocations: 155.7 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.3196, allocations: 1.906 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.3197, allocations: 19.61 kB / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.3199, allocations: 130.6 kB / 0.532 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3199, allocations: 0 / 0.532 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3199, allocations: 1.469 kB / 0.532 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.188e-06/0.3199, allocations: 0 / 0.532 GB, free: 12.32 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.0004328/0.3204, allocations: 369.4 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.3204, allocations: 10.28 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.771e-05/0.3204, allocations: 40.02 kB / 0.5324 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.396e-05/0.3205, allocations: 7.5 kB / 0.5324 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.3206, allocations: 165.8 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.3206, allocations: 9.656 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.226e-05/0.3206, allocations: 4.031 kB / 0.5326 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001231/0.3208, allocations: 62.92 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3208, allocations: 0 / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.3208, allocations: 5.562 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.3208, allocations: 1.344 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.132e-05/0.3209, allocations: 23.55 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.3211, allocations: 176.3 kB / 0.5329 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.3213, allocations: 59.19 kB / 0.5329 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.461e-05/0.3214, allocations: 25.72 kB / 0.5329 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.3216, allocations: 109.2 kB / 0.533 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.3217, allocations: 40.25 kB / 0.5331 GB, free: 11.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.3217, allocations: 0 / 0.5331 GB, free: 11.18 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.1485/0.4702, allocations: 6.382 MB / 0.5393 GB, free: 7.637 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.4703, allocations: 53.06 kB / 0.5394 GB, free: 7.574 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.4704, allocations: 100.4 kB / 0.5395 GB, free: 7.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.4705, allocations: 31.05 kB / 0.5395 GB, free: 7.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.033e-05/0.4705, allocations: 80.14 kB / 0.5396 GB, free: 7.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.504e-05/0.4706, allocations: 63.66 kB / 0.5396 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.4708, allocations: 89.06 kB / 0.5397 GB, free: 7.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.471, allocations: 325.5 kB / 0.54 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005604/0.4716, allocations: 228.5 kB / 0.5402 GB, free: 6.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005591/0.4721, allocations: 241.6 kB / 0.5405 GB, free: 6.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002107/0.4742, allocations: 0.5565 MB / 0.541 GB, free: 6.375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4743, allocations: 0 / 0.541 GB, free: 6.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001881/0.4761, allocations: 0.6131 MB / 0.5416 GB, free: 6.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4762, allocations: 8.219 kB / 0.5416 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4762, allocations: 0 / 0.5416 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4762, allocations: 1.156 kB / 0.5416 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006488/0.4769, allocations: 113 kB / 0.5417 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.4769, allocations: 1.188 kB / 0.5417 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004102/0.4773, allocations: 20.19 kB / 0.5417 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.4774, allocations: 40.44 kB / 0.5418 GB, free: 5.953 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.0001605/0.4775, allocations: 125.1 kB / 0.5419 GB, free: 5.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.4776, allocations: 11.22 kB / 0.5419 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/0.4798, allocations: 0.7332 MB / 0.5426 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.4798, allocations: 4 kB / 0.5426 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4798, allocations: 4 kB / 0.5426 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.4798, allocations: 0 / 0.5426 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003967/0.4838, allocations: 1.157 MB / 0.5438 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4838, allocations: 0 / 0.5438 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005301/0.4844, allocations: 107.8 kB / 0.5439 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.4844, allocations: 0 / 0.5439 GB, free: 3.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.772e-05/0.4844, allocations: 27.95 kB / 0.5439 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.4844, allocations: 4 kB / 0.5439 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4845, allocations: 0 / 0.5439 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.4862, allocations: 0.5822 MB / 0.5445 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.013e-05/0.4863, allocations: 89.05 kB / 0.5446 GB, free: 3.016 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.4863, allocations: 4 kB / 0.5446 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.4867, allocations: 27.97 kB / 0.5446 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.457e-05/0.4868, allocations: 15.97 kB / 0.5446 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.4868, allocations: 27.95 kB / 0.5446 GB, free: 2.941 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.871e-05/0.4869, allocations: 95.2 kB / 0.5447 GB, free: 2.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.903e-06/0.4869, allocations: 3.938 kB / 0.5447 GB, free: 2.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001624/0.4885, allocations: 0.6479 MB / 0.5454 GB, free: 2.195 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.005874/0.4944, allocations: 1.31 MB / 0.5466 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002062/0.4965, allocations: 454.3 kB / 0.5471 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/0.4965, allocations: 0 / 0.5471 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009383/0.4975, allocations: 203.9 kB / 0.5473 GB, free: 200 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.498, allocations: 12 kB / 0.5473 GB, free: 188 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00444/0.5025, allocations: 0.6203 MB / 0.5479 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.5028, allocations: 0.6965 MB / 0.5486 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004425/0.5033, allocations: 129.1 kB / 0.5487 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003277/0.5036, allocations: 95.28 kB / 0.5488 GB, free: 14.55 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.5036, allocations: 3.938 kB / 0.5488 GB, free: 14.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1011/0.6047, allocations: 58.58 MB / 0.606 GB, free: 3.973 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.118/8.723, allocations: 11.88 kB / 0.606 GB, free: 3.961 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