Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008862/0.0008862, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9013/0.9013, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2321/0.2321, allocations: 32.78 MB / 293.5 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.327e-06/3.327e-06, allocations: 3.938 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.875e-05, allocations: 2.281 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001501/0.00153, allocations: 0.5275 MB / 440.1 MB, free: 3.754 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005195/0.00205, allocations: 342.6 kB / 440.4 MB, free: 3.418 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.712e-05/0.002077, allocations: 4 kB / 440.4 MB, free: 3.414 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.713e-05/0.002094, allocations: 4 kB / 440.4 MB, free: 3.41 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.101e-05/0.002125, allocations: 3.938 kB / 440.4 MB, free: 3.406 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003574/0.002482, allocations: 99.59 kB / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.532e-05/0.002538, allocations: 27.91 kB / 440.6 MB, free: 3.281 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.459e-05/0.002582, allocations: 11.92 kB / 440.6 MB, free: 3.27 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.002615, allocations: 12 kB / 440.6 MB, free: 3.258 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.922e-05/0.002665, allocations: 11.97 kB / 440.6 MB, free: 3.246 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.357e-05/0.002678, allocations: 0 / 440.6 MB, free: 3.246 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001643/0.002842, allocations: 115.9 kB / 440.7 MB, free: 3.133 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.002858, allocations: 11.92 kB / 440.7 MB, free: 3.121 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.002877, allocations: 11.98 kB / 440.7 MB, free: 3.109 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.00303, allocations: 115.6 kB / 440.9 MB, free: 2.996 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.003034, allocations: 3.938 kB / 440.9 MB, free: 2.992 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.003035, allocations: 0 / 440.9 MB, free: 2.992 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.00304, allocations: 7.938 kB / 440.9 MB, free: 2.984 MB / 410.7 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.0003394/0.003379, allocations: 286 kB / 441.1 MB, free: 2.672 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.003419, allocations: 12.03 kB / 441.2 MB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.115e-05/0.00345, allocations: 34.75 kB / 441.2 MB, free: 2.617 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.493e-05/0.003475, allocations: 8.938 kB / 441.2 MB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.438e-05/0.003549, allocations: 105.8 kB / 441.3 MB, free: 2.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.003562, allocations: 8.375 kB / 441.3 MB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.003583, allocations: 8.359 kB / 441.3 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.003686, allocations: 54.19 kB / 441.4 MB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.003697, allocations: 192 / 441.4 MB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.003706, allocations: 384 / 441.4 MB, free: 2.406 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.003712, allocations: 4.125 kB / 441.4 MB, free: 2.402 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.963e-05/0.003772, allocations: 27.97 kB / 441.4 MB, free: 2.375 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001301/0.003902, allocations: 136.7 kB / 441.5 MB, free: 2.199 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.004087, allocations: 62.58 kB / 441.6 MB, free: 2.129 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.512e-05/0.004123, allocations: 20.86 kB / 441.6 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001643/0.004287, allocations: 31.95 kB / 441.7 MB, free: 2.074 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.004303, allocations: 30.56 kB / 441.7 MB, free: 2.035 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.004304, allocations: 4 kB / 441.7 MB, free: 2.031 MB / 410.7 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.1842/0.1885, allocations: 2.58 MB / 444.3 MB, free: 45.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.1885, allocations: 54.38 kB / 444.3 MB, free: 45.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.708e-05/0.1885, allocations: 105.1 kB / 444.4 MB, free: 45.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.1886, allocations: 29.3 kB / 444.5 MB, free: 45.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.66e-05/0.1886, allocations: 84.58 kB / 444.5 MB, free: 45.24 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.877e-05/0.1886, allocations: 68.34 kB / 444.6 MB, free: 45.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.167e-05/0.1887, allocations: 58.19 kB / 444.7 MB, free: 45.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.234e-05/0.1887, allocations: 321 kB / 445 MB, free: 44.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/0.189, allocations: 170.3 kB / 445.1 MB, free: 44.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001979/0.1892, allocations: 182.3 kB / 445.3 MB, free: 44.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005423/0.1897, allocations: 416.5 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1897, allocations: 3.75 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005523/0.1903, allocations: 466.3 kB / 446.2 MB, free: 44.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.1903, allocations: 5.188 kB / 446.2 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.1903, allocations: 0 / 446.2 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1903, allocations: 0 / 446.2 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.1905, allocations: 77.23 kB / 446.3 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.1905, allocations: 0 / 446.3 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.069e-05/0.1906, allocations: 15.7 kB / 446.3 MB, free: 44.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.1906, allocations: 13.75 kB / 446.3 MB, free: 44.48 MB / 410.7 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 7.767e-05/0.1907, allocations: 131.8 kB / 446.4 MB, free: 44.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.1907, allocations: 6.703 kB / 446.4 MB, free: 44.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007013/0.1914, allocations: 0.5395 MB / 447 MB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1914, allocations: 0 / 447 MB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1914, allocations: 2.844 kB / 447 MB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.1914, allocations: 3.469 kB / 447 MB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.1925, allocations: 0.8004 MB / 447.8 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1925, allocations: 9.953 kB / 447.8 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.1927, allocations: 69.86 kB / 447.8 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1927, allocations: 2.562 kB / 447.9 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1927, allocations: 23.14 kB / 447.9 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1927, allocations: 0 / 447.9 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1927, allocations: 2.875 kB / 447.9 MB, free: 43.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000462/0.1932, allocations: 456.1 kB / 448.3 MB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.1932, allocations: 10.05 kB / 448.3 MB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.1932, allocations: 14.12 kB / 448.3 MB, free: 43.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.262e-05/0.1933, allocations: 19.64 kB / 448.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.7e-05/0.1933, allocations: 16.45 kB / 448.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.1933, allocations: 24.59 kB / 448.4 MB, free: 43.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.705e-05/0.1933, allocations: 85.06 kB / 448.5 MB, free: 43.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1933, allocations: 0 / 448.5 MB, free: 43.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006137/0.1939, allocations: 317.6 kB / 448.8 MB, free: 43.39 MB / 410.7 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.001464/0.1954, allocations: 1.145 MB / 449.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004713/0.1959, allocations: 329.2 kB / 450.3 MB, free: 42.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1959, allocations: 0 / 450.3 MB, free: 42.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.1961, allocations: 143.8 kB / 450.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.1963, allocations: 10.66 kB / 450.4 MB, free: 42.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.1973, allocations: 0.4973 MB / 450.9 MB, free: 42.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.493e-05/0.1974, allocations: 84.36 kB / 451 MB, free: 42.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.1975, allocations: 90.28 kB / 451.1 MB, free: 42.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.1977, allocations: 57.27 kB / 451.1 MB, free: 42.06 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1977, allocations: 4 kB / 451.1 MB, free: 42.05 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.2255, allocations: 19.9 MB / 471 MB, free: 40.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.734/6.959, allocations: 10.95 kB / 471.1 MB, free: 40.14 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.91067795176059]