Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_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.000868/0.000868, allocations: 103.3 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009558/0.0009558, allocations: 184.9 kB / 16.92 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.4 MB / 223.1 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2996/0.2996, allocations: 43.57 MB / 315 MB, free: 9.074 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004765, allocations: 12 kB / 384.7 MB, free: 7.805 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09364, allocations: 58.88 MB / 443.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.000542/0.09422, allocations: 280.2 kB / 443.8 MB, free: 12.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006777/0.09491, allocations: 430.2 kB / 444.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.562e-05/0.09494, allocations: 0 / 444.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.349e-05/0.09496, allocations: 0 / 444.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.701e-05/0.09499, allocations: 4 kB / 444.2 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.09533, allocations: 95.78 kB / 444.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.751e-05/0.09539, allocations: 23.92 kB / 444.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.78e-05/0.09543, allocations: 4 kB / 444.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.154e-05/0.09546, allocations: 15.92 kB / 444.4 MB, free: 12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.09551, allocations: 19.91 kB / 444.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.09553, allocations: 4 kB / 444.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.09577, allocations: 155.8 kB / 444.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.284e-05/0.09579, allocations: 15.88 kB / 444.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.878e-05/0.09583, allocations: 37.62 kB / 444.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001667/0.096, allocations: 128 kB / 444.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.09601, allocations: 4 kB / 444.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09602, allocations: 3.938 kB / 444.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.015e-06/0.09603, allocations: 0 / 444.7 MB, free: 11.63 MB / 382.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.0003254/0.09636, allocations: 347.5 kB / 445.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.0964, allocations: 12.03 kB / 445.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.09643, allocations: 38.73 kB / 445.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.167e-05/0.09646, allocations: 8.844 kB / 445.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.98e-05/0.09655, allocations: 164.3 kB / 445.3 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.09657, allocations: 8.375 kB / 445.3 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.09659, allocations: 4.375 kB / 445.3 MB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.0967, allocations: 61.92 kB / 445.4 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.09672, allocations: 3.906 kB / 445.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.09674, allocations: 4 kB / 445.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.09674, allocations: 0 / 445.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.788e-05/0.09681, allocations: 23.98 kB / 445.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.09695, allocations: 169.7 kB / 445.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.09713, allocations: 58.59 kB / 445.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.367e-05/0.09719, allocations: 28.84 kB / 445.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002447/0.09744, allocations: 121 kB / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.09747, allocations: 38.5 kB / 445.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 2.304e-06/0.09748, allocations: 3.984 kB / 445.8 MB, free: 10.37 MB / 382.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.1474/0.2449, allocations: 6.619 MB / 452.4 MB, free: 3.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.245, allocations: 51.41 kB / 452.5 MB, free: 3.648 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.077e-05/0.2451, allocations: 105.8 kB / 452.6 MB, free: 3.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.56e-05/0.2451, allocations: 25.7 kB / 452.6 MB, free: 3.504 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.962e-05/0.2452, allocations: 84.14 kB / 452.7 MB, free: 3.418 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.51e-05/0.2452, allocations: 67 kB / 452.8 MB, free: 3.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.193e-05/0.2453, allocations: 25.66 kB / 452.8 MB, free: 3.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.2454, allocations: 326.8 kB / 453.1 MB, free: 2.992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.246, allocations: 243.8 kB / 453.3 MB, free: 2.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005203/0.2465, allocations: 239.8 kB / 453.6 MB, free: 2.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.2486, allocations: 0.5982 MB / 454.2 MB, free: 1.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2487, allocations: 0 / 454.2 MB, free: 1.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001783/0.2504, allocations: 0.6339 MB / 454.8 MB, free: 1.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2505, allocations: 4 kB / 454.8 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2505, allocations: 0 / 454.8 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2505, allocations: 0 / 454.8 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006199/0.2511, allocations: 123.8 kB / 454.9 MB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2511, allocations: 0 / 454.9 MB, free: 1.156 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.2516, allocations: 31.95 kB / 455 MB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.558e-05/0.2516, allocations: 35.94 kB / 455 MB, free: 1.09 MB / 382.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.0001367/0.2518, allocations: 117.8 kB / 455.1 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.782e-05/0.2518, allocations: 15.84 kB / 455.1 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002114/0.254, allocations: 0.7591 MB / 455.9 MB, free: 188 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.254, allocations: 4.25 kB / 455.9 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.254, allocations: 0 / 455.9 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.254, allocations: 7.984 kB / 455.9 MB, free: 176 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1682/0.4222, allocations: 1.215 MB / 457.1 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4222, allocations: 6.5 kB / 457.1 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005068/0.4228, allocations: 110.2 kB / 457.2 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.4228, allocations: 5.969 kB / 457.2 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.834e-05/0.4228, allocations: 25.33 kB / 457.3 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4228, allocations: 6.219 kB / 457.3 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4228, allocations: 3.812 kB / 457.3 MB, free: 45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.4243, allocations: 0.617 MB / 457.9 MB, free: 44.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.054e-05/0.4244, allocations: 84.52 kB / 458 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.4244, allocations: 3.031 kB / 458 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004116/0.4248, allocations: 35.84 kB / 458 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.838e-05/0.4249, allocations: 22.77 kB / 458 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.4249, allocations: 24.66 kB / 458 MB, free: 44.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.437e-05/0.425, allocations: 86.89 kB / 458.1 MB, free: 44.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.425, allocations: 0 / 458.1 MB, free: 44.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001526/0.4265, allocations: 0.6436 MB / 458.8 MB, free: 44.66 MB / 382.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.004497/0.431, allocations: 1.358 MB / 460.1 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.432, allocations: 485 kB / 460.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4321, allocations: 0 / 460.6 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004662/0.4325, allocations: 219.4 kB / 460.8 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4328, allocations: 12.59 kB / 460.8 MB, free: 43.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.4358, allocations: 0.6887 MB / 461.5 MB, free: 43.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.567e-05/0.436, allocations: 0.6958 MB / 462.2 MB, free: 42.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004838/0.4364, allocations: 121.4 kB / 462.3 MB, free: 42.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.4367, allocations: 104.8 kB / 462.4 MB, free: 42.95 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4368, allocations: 0 / 462.4 MB, free: 42.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08993/0.5267, allocations: 58.01 MB / 0.5082 GB, free: 13.44 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/0.527, allocations: 214.8 kB / 0.5085 GB, free: 13.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.74, allocations: 0 / 0.5085 GB, free: 13.18 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches