Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007457/0.0007457, 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.0007808/0.0007808, 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.8599/0.8599, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2326/0.2326, allocations: 34.25 MB / 294.9 MB, free: 0.7344 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.725e-05/1.873e-05, allocations: 2.844 kB / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001091/0.00111, allocations: 0.5311 MB / 442.7 MB, free: 1.164 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005079/0.001618, allocations: 366.9 kB / 443 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.36e-05/0.001642, allocations: 4 kB / 443 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.65e-05/0.001658, allocations: 7.938 kB / 443.1 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.885e-05/0.001687, allocations: 3.938 kB / 443.1 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.00207, allocations: 135.5 kB / 443.2 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.084e-05/0.002121, allocations: 23.92 kB / 443.2 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.002159, allocations: 0 / 443.2 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.548e-05/0.002194, allocations: 23.91 kB / 443.2 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.615e-05/0.00224, allocations: 11.98 kB / 443.2 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.182e-05/0.002252, allocations: 4 kB / 443.3 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.002424, allocations: 147.7 kB / 443.4 MB, free: 456 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.511e-05/0.002439, allocations: 7.922 kB / 443.4 MB, free: 448 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.763e-05/0.002456, allocations: 11.98 kB / 443.4 MB, free: 436 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.002622, allocations: 147.6 kB / 443.6 MB, free: 288 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.002625, allocations: 0 / 443.6 MB, free: 288 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.002626, allocations: 4 kB / 443.6 MB, free: 284 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.00263, allocations: 0 / 443.6 MB, free: 284 kB / 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.1555/0.1582, allocations: 287.9 kB / 443.8 MB, free: 44.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.1582, allocations: 8.812 kB / 443.9 MB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.568e-05/0.1582, allocations: 33.69 kB / 443.9 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.1583, allocations: 3.312 kB / 443.9 MB, free: 44.29 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.867e-05/0.1583, allocations: 110.6 kB / 444 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.042e-05/0.1583, allocations: 4.469 kB / 444 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.1584, allocations: 12.89 kB / 444 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.1585, allocations: 55.52 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1585, allocations: 7.75 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-06/0.1585, allocations: 0.5625 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.1585, allocations: 3.938 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.424e-05/0.1585, allocations: 30.2 kB / 444.1 MB, free: 44.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/0.1586, allocations: 132.3 kB / 444.2 MB, free: 43.97 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.1588, allocations: 52.02 kB / 444.3 MB, free: 43.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.1589, allocations: 24.48 kB / 444.3 MB, free: 43.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001674/0.159, allocations: 31.45 kB / 444.3 MB, free: 43.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.17e-05/0.159, allocations: 39.53 kB / 444.4 MB, free: 43.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=9): time 1.694e-06/0.159, allocations: 2.344 kB / 444.4 MB, free: 43.9 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.06148/0.2205, allocations: 6.389 MB / 450.8 MB, free: 43.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.2205, allocations: 54.28 kB / 450.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.61e-05/0.2206, allocations: 102.9 kB / 450.9 MB, free: 43.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.2206, allocations: 33.7 kB / 451 MB, free: 43.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.725e-05/0.2206, allocations: 85.08 kB / 451 MB, free: 42.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.649e-05/0.2207, allocations: 61.22 kB / 451.1 MB, free: 42.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.2208, allocations: 91.77 kB / 451.2 MB, free: 42.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.933e-05/0.2208, allocations: 316.9 kB / 451.5 MB, free: 42.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.2211, allocations: 228.6 kB / 451.7 MB, free: 42.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/0.2214, allocations: 235.9 kB / 452 MB, free: 42.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.2225, allocations: 0.5572 MB / 452.5 MB, free: 42.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2225, allocations: 3.938 kB / 452.5 MB, free: 42.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009804/0.2235, allocations: 0.6057 MB / 453.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.2235, allocations: 5.156 kB / 453.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2235, allocations: 0 / 453.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2235, allocations: 0 / 453.1 MB, free: 42.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.2238, allocations: 109.5 kB / 453.2 MB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.2239, allocations: 7.328 kB / 453.2 MB, free: 42.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.224, allocations: 26.11 kB / 453.3 MB, free: 42.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.2241, allocations: 37.14 kB / 453.3 MB, free: 42.02 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 8.599e-05/0.2242, allocations: 120.6 kB / 453.4 MB, free: 41.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.176e-05/0.2242, allocations: 9.703 kB / 453.4 MB, free: 41.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.2253, allocations: 0.728 MB / 454.2 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.2253, allocations: 6.344 kB / 454.2 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2253, allocations: 0 / 454.2 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2253, allocations: 6.078 kB / 454.2 MB, free: 41.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.2274, allocations: 1.072 MB / 455.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2274, allocations: 4.188 kB / 455.2 MB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002385/0.2276, allocations: 104.3 kB / 455.3 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.2276, allocations: 7.156 kB / 455.4 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.2276, allocations: 30.02 kB / 455.4 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2276, allocations: 3.219 kB / 455.4 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2276, allocations: 0 / 455.4 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008664/0.2285, allocations: 0.5805 MB / 456 MB, free: 40.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.149e-05/0.2285, allocations: 10.3 kB / 456 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.2285, allocations: 14.47 kB / 456 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.2287, allocations: 23.06 kB / 456 MB, free: 40.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.2288, allocations: 14.42 kB / 456 MB, free: 40.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.2288, allocations: 29.23 kB / 456.1 MB, free: 40.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.607e-05/0.2288, allocations: 93.56 kB / 456.2 MB, free: 40.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2288, allocations: 0 / 456.2 MB, free: 40.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001137/0.2299, allocations: 0.6495 MB / 456.8 MB, free: 40.72 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.00308/0.233, allocations: 1.332 MB / 458.1 MB, free: 39.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006535/0.2337, allocations: 437.1 kB / 458.6 MB, free: 39.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2337, allocations: 0 / 458.6 MB, free: 39.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.2339, allocations: 200 kB / 458.8 MB, free: 39.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.2341, allocations: 10.38 kB / 458.8 MB, free: 39.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2359, allocations: 0.6172 MB / 459.4 MB, free: 39.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.128e-05/0.2359, allocations: 87.2 kB / 459.5 MB, free: 39.32 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002336/0.2361, allocations: 122.6 kB / 459.6 MB, free: 39.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.2364, allocations: 102.8 kB / 459.7 MB, free: 39.25 MB / 410.7 MB Notification: Performance of SimCode: time 5.01e-07/0.2364, allocations: 0 / 459.7 MB, free: 39.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06115/0.2975, allocations: 60.28 MB / 0.5078 GB, free: 3.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.914/7.211, allocations: 7.688 kB / 0.5078 GB, free: 3.246 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.105899472720921]