Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 104.1 kB / 17.64 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1965/0.1965, allocations: 44.18 MB / 336.6 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 64.08 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09443/0.09567, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.00175/0.09747, allocations: 0.5338 MB / 469.9 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006967/0.09818, allocations: 413.3 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.704e-05/0.09822, allocations: 0 / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.09824, allocations: 3.938 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.598e-05/0.09829, allocations: 3.938 kB / 470.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.09875, allocations: 127.6 kB / 470.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.341e-05/0.09881, allocations: 27.92 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.09886, allocations: 4 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.099e-05/0.09889, allocations: 15.92 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.442e-05/0.09895, allocations: 19.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.332e-05/0.09897, allocations: 4 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002596/0.09923, allocations: 159.8 kB / 470.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.09925, allocations: 3.938 kB / 470.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.727e-05/0.09929, allocations: 19.92 kB / 470.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.09951, allocations: 131.9 kB / 470.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.09953, allocations: 0 / 470.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09953, allocations: 0 / 470.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.09954, allocations: 0 / 470.8 MB, free: 12.85 MB / 350.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.0004096/0.09996, allocations: 363.5 kB / 471.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1, allocations: 8.031 kB / 471.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.281e-05/0.1, allocations: 42.73 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.1001, allocations: 4.844 kB / 471.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.1002, allocations: 168.3 kB / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1002, allocations: 384 / 471.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.31e-05/0.1002, allocations: 8.375 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.1004, allocations: 61.86 kB / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1004, allocations: 0 / 471.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.1004, allocations: 8 kB / 471.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1004, allocations: 4 kB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.04e-05/0.1005, allocations: 23.98 kB / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001534/0.1006, allocations: 169.6 kB / 471.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.1008, allocations: 58.59 kB / 471.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.974e-05/0.1009, allocations: 28.84 kB / 471.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002614/0.1012, allocations: 109.1 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.1012, allocations: 38.5 kB / 471.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.1012, allocations: 0 / 471.9 MB, free: 11.59 MB / 350.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.1433/0.2445, allocations: 6.372 MB / 478.2 MB, free: 5.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.2446, allocations: 51.41 kB / 478.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.322e-05/0.2447, allocations: 105.8 kB / 478.4 MB, free: 5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.573e-05/0.2448, allocations: 33.7 kB / 478.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.2448, allocations: 84.12 kB / 478.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.2449, allocations: 63.05 kB / 478.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.2451, allocations: 89.59 kB / 478.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.2452, allocations: 322.8 kB / 479 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000557/0.2458, allocations: 231.8 kB / 479.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005466/0.2463, allocations: 235.8 kB / 479.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.2485, allocations: 0.5538 MB / 480 MB, free: 3.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2485, allocations: 0 / 480 MB, free: 3.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001826/0.2503, allocations: 0.6109 MB / 480.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2503, allocations: 4 kB / 480.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.2504, allocations: 0 / 480.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.2504, allocations: 0 / 480.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006519/0.251, allocations: 115.8 kB / 480.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2511, allocations: 3.938 kB / 480.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004604/0.2515, allocations: 23.97 kB / 480.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/0.2516, allocations: 31.94 kB / 480.8 MB, free: 2.59 MB / 350.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.0001462/0.2517, allocations: 121.8 kB / 480.9 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.2518, allocations: 11.84 kB / 480.9 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002179/0.254, allocations: 0.7345 MB / 481.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.254, allocations: 0 / 481.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.254, allocations: 4 kB / 481.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.254, allocations: 4 kB / 481.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004039/0.2581, allocations: 1.172 MB / 482.8 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2581, allocations: 0 / 482.8 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005252/0.2586, allocations: 104 kB / 482.9 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.431e-06/0.2586, allocations: 3.984 kB / 482.9 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.616e-05/0.2587, allocations: 31.95 kB / 483 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.2587, allocations: 4 kB / 483 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2587, allocations: 0 / 483 MB, free: 324 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001698/0.2604, allocations: 0.582 MB / 483.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.2605, allocations: 93 kB / 483.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.2605, allocations: 4 kB / 483.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.261, allocations: 23.97 kB / 483.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.274e-05/0.261, allocations: 11.98 kB / 483.7 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.581e-05/0.261, allocations: 31.95 kB / 483.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.2611, allocations: 91.2 kB / 483.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.2611, allocations: 0 / 483.8 MB, free: 15.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001665/0.2628, allocations: 0.6483 MB / 484.4 MB, free: 14.78 MB / 366.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.00498/0.2677, allocations: 1.293 MB / 485.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.2689, allocations: 459.5 kB / 486.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.2689, allocations: 0 / 486.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005176/0.2695, allocations: 204.1 kB / 486.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2698, allocations: 19.94 kB / 486.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003106/0.2729, allocations: 0.609 MB / 487 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.2731, allocations: 0.7004 MB / 487.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005485/0.2737, allocations: 120.9 kB / 487.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.274, allocations: 99.28 kB / 487.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.274, allocations: 0 / 487.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2708/0.5448, allocations: 58.54 MB / 0.5337 GB, free: 27.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.531, allocations: 1.75 kB / 0.5337 GB, free: 27.18 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches