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.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.0008215/0.0008215, 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.0008545/0.0008545, allocations: 174 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.8602/0.8602, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.2206/0.2206, allocations: 32.79 MB / 293.5 MB, free: 1.23 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 0 / 439.6 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.771e-05, allocations: 7.969 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001988/0.002016, allocations: 0.5322 MB / 440.1 MB, free: 3.746 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008299/0.002845, allocations: 374.8 kB / 440.5 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.468e-05/0.00288, allocations: 0 / 440.5 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.425e-05/0.002904, allocations: 0 / 440.5 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 3.721e-05/0.002942, allocations: 7.938 kB / 440.5 MB, free: 3.367 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.003511, allocations: 145.5 kB / 440.6 MB, free: 3.227 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.854e-05/0.003579, allocations: 23.92 kB / 440.6 MB, free: 3.203 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.888e-05/0.003628, allocations: 0 / 440.6 MB, free: 3.203 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.346e-05/0.003671, allocations: 19.97 kB / 440.7 MB, free: 3.184 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.509e-05/0.003727, allocations: 7.984 kB / 440.7 MB, free: 3.176 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.755e-05/0.003744, allocations: 7.938 kB / 440.7 MB, free: 3.168 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.004002, allocations: 139.8 kB / 440.8 MB, free: 3.031 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.676e-05/0.004019, allocations: 4 kB / 440.8 MB, free: 3.027 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.637e-05/0.004045, allocations: 19.91 kB / 440.8 MB, free: 3.008 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.004331, allocations: 139.7 kB / 441 MB, free: 2.871 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.004337, allocations: 3.984 kB / 441 MB, free: 2.867 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.004339, allocations: 0 / 441 MB, free: 2.867 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.004343, allocations: 0 / 441 MB, free: 2.867 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.0004255/0.004769, allocations: 290 kB / 441.3 MB, free: 2.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.004815, allocations: 12.03 kB / 441.3 MB, free: 2.543 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.983e-05/0.004855, allocations: 34.73 kB / 441.3 MB, free: 2.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.004888, allocations: 4.938 kB / 441.3 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.972e-05/0.004987, allocations: 121.6 kB / 441.4 MB, free: 2.352 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.005002, allocations: 8.375 kB / 441.4 MB, free: 2.344 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.005027, allocations: 4.375 kB / 441.4 MB, free: 2.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.005159, allocations: 58.17 kB / 441.5 MB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.005171, allocations: 192 / 441.5 MB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.005181, allocations: 384 / 441.5 MB, free: 2.277 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.005189, allocations: 3.938 kB / 441.5 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.624e-05/0.005265, allocations: 31.92 kB / 441.5 MB, free: 2.242 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001767/0.005442, allocations: 136.8 kB / 441.7 MB, free: 2.066 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002469/0.005689, allocations: 54.55 kB / 441.7 MB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.005805, allocations: 24.84 kB / 441.7 MB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002393/0.006045, allocations: 31.95 kB / 441.8 MB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.006069, allocations: 34.78 kB / 441.8 MB, free: 1.902 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 2.164e-06/0.006071, allocations: 0 / 441.8 MB, free: 1.902 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.221/0.2271, allocations: 6.387 MB / 448.2 MB, free: 45.74 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.431e-05/0.2271, allocations: 54.16 kB / 448.2 MB, free: 45.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.016e-05/0.2272, allocations: 99.58 kB / 448.3 MB, free: 45.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.2272, allocations: 27.23 kB / 448.4 MB, free: 45.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.792e-05/0.2272, allocations: 92.17 kB / 448.5 MB, free: 45.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.2273, allocations: 60.23 kB / 448.5 MB, free: 45.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.2274, allocations: 85.22 kB / 448.6 MB, free: 45.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.346e-05/0.2274, allocations: 325.1 kB / 448.9 MB, free: 45.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.2277, allocations: 228.9 kB / 449.1 MB, free: 45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.228, allocations: 231.9 kB / 449.4 MB, free: 44.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.2291, allocations: 0.5636 MB / 449.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2291, allocations: 0 / 449.9 MB, free: 44.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009812/0.2301, allocations: 0.6132 MB / 450.5 MB, free: 44.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.2301, allocations: 6.469 kB / 450.6 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2301, allocations: 0 / 450.6 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.2302, allocations: 0 / 450.6 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.2305, allocations: 104.9 kB / 450.7 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.2305, allocations: 8.453 kB / 450.7 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.2307, allocations: 27.39 kB / 450.7 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.2307, allocations: 32.58 kB / 450.7 MB, free: 44.51 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 9.668e-05/0.2308, allocations: 130.3 kB / 450.9 MB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.156e-05/0.2308, allocations: 7.109 kB / 450.9 MB, free: 44.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001139/0.232, allocations: 0.7232 MB / 451.6 MB, free: 44.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.232, allocations: 7.25 kB / 451.6 MB, free: 44.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.232, allocations: 4 kB / 451.6 MB, free: 44.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.232, allocations: 3.469 kB / 451.6 MB, free: 44.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002022/0.234, allocations: 1.079 MB / 452.7 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.234, allocations: 7.188 kB / 452.7 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000235/0.2343, allocations: 93.42 kB / 452.8 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2343, allocations: 3.531 kB / 452.8 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.2343, allocations: 38.25 kB / 452.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.2343, allocations: 3.25 kB / 452.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2343, allocations: 0 / 452.8 MB, free: 43.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008786/0.2352, allocations: 0.5693 MB / 453.4 MB, free: 43.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.26e-05/0.2352, allocations: 21.48 kB / 453.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.2352, allocations: 7.188 kB / 453.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.2354, allocations: 22.64 kB / 453.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.2354, allocations: 17.48 kB / 453.5 MB, free: 43.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.2354, allocations: 28.17 kB / 453.5 MB, free: 43.34 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.003e-05/0.2355, allocations: 85.28 kB / 453.6 MB, free: 43.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2355, allocations: 0 / 453.6 MB, free: 43.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00121/0.2367, allocations: 0.6466 MB / 454.2 MB, free: 43.25 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.00319/0.2399, allocations: 1.334 MB / 455.5 MB, free: 42.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000694/0.2406, allocations: 440.5 kB / 456 MB, free: 42.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2406, allocations: 0 / 456 MB, free: 42.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002731/0.2408, allocations: 196 kB / 456.2 MB, free: 42.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.241, allocations: 12.3 kB / 456.2 MB, free: 42.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.2429, allocations: 0.6153 MB / 456.8 MB, free: 41.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.577e-05/0.2429, allocations: 87.81 kB / 456.9 MB, free: 41.84 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002408/0.2432, allocations: 124.7 kB / 457 MB, free: 41.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.2434, allocations: 97.5 kB / 457.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2434, allocations: 0 / 457.1 MB, free: 41.78 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06597/0.3094, allocations: 60.29 MB / 0.5053 GB, free: 8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.182/7.491, allocations: 4.062 kB / 0.5053 GB, free: 7.996 MB / 410.7 MB " [Timeout remaining time 652] (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 --stepSize=0.0004 --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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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: 9.369721382856369]