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.001606/0.001606, allocations: 108.8 kB / 17.33 MB, free: 5.992 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.001905/0.001905, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.322/1.322, allocations: 222.9 MB / 241.9 MB, free: 15.37 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.1974/0.1974, allocations: 44.16 MB / 336.2 MB, free: 2.941 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 61.06 kB / 408 MB, free: 27.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 60.82 MB / 468.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002147/0.1077, allocations: 0.6071 MB / 469.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008406/0.1086, allocations: 397.4 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.902e-05/0.1086, allocations: 0 / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.281e-05/0.1087, allocations: 3.938 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.635e-05/0.1088, allocations: 4 kB / 469.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005881/0.1093, allocations: 119.8 kB / 469.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.573e-05/0.1094, allocations: 23.98 kB / 470 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.838e-05/0.1095, allocations: 8 kB / 470 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.587e-05/0.1095, allocations: 11.92 kB / 470 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.607e-05/0.1096, allocations: 19.91 kB / 470 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.1096, allocations: 11.88 kB / 470 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002741/0.1099, allocations: 155.8 kB / 470.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.1099, allocations: 4 kB / 470.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.11, allocations: 19.86 kB / 470.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002287/0.1102, allocations: 128 kB / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1102, allocations: 0 / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1102, allocations: 0 / 470.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.1102, allocations: 4 kB / 470.3 MB, free: 13.13 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.0004642/0.1107, allocations: 367.4 kB / 470.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.1107, allocations: 8.031 kB / 470.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.1108, allocations: 34.75 kB / 470.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.1108, allocations: 8.875 kB / 470.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.111, allocations: 172.2 kB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.829e-06/0.111, allocations: 384 / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.111, allocations: 4.375 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.1111, allocations: 65.92 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.1112, allocations: 0 / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1112, allocations: 7.984 kB / 471 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1112, allocations: 4 kB / 471 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.082e-05/0.1113, allocations: 23.98 kB / 471 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001799/0.1115, allocations: 165.7 kB / 471.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.1117, allocations: 58.59 kB / 471.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.493e-05/0.1117, allocations: 32.84 kB / 471.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000262/0.112, allocations: 105.1 kB / 471.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.112, allocations: 34.5 kB / 471.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.605e-06/0.1121, allocations: 0 / 471.4 MB, free: 11.87 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.1377/0.2498, allocations: 6.374 MB / 477.8 MB, free: 5.457 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.2499, allocations: 55.41 kB / 477.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.876e-05/0.25, allocations: 109.8 kB / 477.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.326e-05/0.25, allocations: 25.7 kB / 477.9 MB, free: 5.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.2501, allocations: 84.14 kB / 478 MB, free: 5.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.2502, allocations: 67.03 kB / 478.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.2504, allocations: 85.59 kB / 478.2 MB, free: 5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.2505, allocations: 319.2 kB / 478.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000556/0.2511, allocations: 239.8 kB / 478.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.2516, allocations: 230.6 kB / 478.9 MB, free: 4.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.2538, allocations: 0.559 MB / 479.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.2538, allocations: 0 / 479.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001883/0.2557, allocations: 0.6088 MB / 480.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.2557, allocations: 8 kB / 480.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.2558, allocations: 0 / 480.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.2558, allocations: 4 kB / 480.1 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007147/0.2565, allocations: 107.8 kB / 480.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.917e-05/0.2565, allocations: 4 kB / 480.2 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/0.257, allocations: 31.89 kB / 480.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.467e-05/0.2571, allocations: 27.95 kB / 480.3 MB, free: 2.867 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.0001802/0.2573, allocations: 125.8 kB / 480.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.226e-05/0.2574, allocations: 11.91 kB / 480.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002241/0.2596, allocations: 0.724 MB / 481.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.2597, allocations: 0 / 481.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.2597, allocations: 0 / 481.2 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.2597, allocations: 4.25 kB / 481.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004346/0.264, allocations: 1.169 MB / 482.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.2641, allocations: 8.031 kB / 482.3 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.2647, allocations: 103.8 kB / 482.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.2647, allocations: 0 / 482.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.264e-05/0.2648, allocations: 31.95 kB / 482.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2648, allocations: 0 / 482.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2648, allocations: 4 kB / 482.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.2665, allocations: 0.5849 MB / 483.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.2666, allocations: 85.02 kB / 483.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.2666, allocations: 8 kB / 483.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.2671, allocations: 23.95 kB / 483.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.2671, allocations: 15.98 kB / 483.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.2672, allocations: 27.95 kB / 483.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.161e-05/0.2673, allocations: 87.22 kB / 483.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2673, allocations: 0 / 483.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00179/0.2691, allocations: 0.6484 MB / 483.9 MB, free: 15.07 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.005395/0.2745, allocations: 1.303 MB / 485.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.2757, allocations: 459.5 kB / 485.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.2757, allocations: 0 / 485.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005299/0.2762, allocations: 204.1 kB / 485.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.2765, allocations: 14.36 kB / 485.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.2802, allocations: 0.6403 MB / 486.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.2805, allocations: 0.6965 MB / 487.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005753/0.2811, allocations: 124.9 kB / 487.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.2814, allocations: 95.28 kB / 487.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.2814, allocations: 3.938 kB / 487.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2567/0.5382, allocations: 58.44 MB / 0.5331 GB, free: 28.95 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001378/0.5383, allocations: 215.7 kB / 0.5333 GB, free: 28.69 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.497/3.036, allocations: 2.875 kB / 0.5333 GB, free: 28.69 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