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.001379/0.001379, allocations: 109 kB / 16.41 MB, free: 6.441 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.001296/0.001296, allocations: 189.1 kB / 17.34 MB, free: 5.719 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.356/1.356, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2059/0.2059, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 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.001578/0.001578, allocations: 69.45 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 57.78 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001731/0.1107, allocations: 0.5457 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007989/0.1115, allocations: 417.5 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.946e-05/0.1116, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.804e-05/0.1116, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.301e-05/0.1116, allocations: 3.938 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.1122, allocations: 135.5 kB / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.084e-05/0.1122, allocations: 19.98 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.1123, allocations: 8 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.994e-05/0.1123, allocations: 23.91 kB / 0.4885 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.1124, allocations: 15.92 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.1124, allocations: 4 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003088/0.1127, allocations: 159.8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.271e-05/0.1127, allocations: 3.938 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.1128, allocations: 15.92 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.113, allocations: 127.7 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.113, allocations: 3.984 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.113, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.113, allocations: 0 / 0.4888 GB, free: 10.85 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.00047/0.1135, allocations: 371.3 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.1135, allocations: 15.89 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.471e-05/0.1136, allocations: 34.73 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.1136, allocations: 0.9375 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001157/0.1137, allocations: 168.3 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.1137, allocations: 8.312 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.1138, allocations: 4.375 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.1139, allocations: 61.92 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1139, allocations: 4 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.1139, allocations: 0 / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1139, allocations: 4 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.782e-05/0.114, allocations: 23.98 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001783/0.1142, allocations: 181.5 kB / 0.4896 GB, free: 9.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.1144, allocations: 50.56 kB / 0.4897 GB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.547e-05/0.1145, allocations: 24.84 kB / 0.4897 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/0.1147, allocations: 109.1 kB / 0.4898 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.1148, allocations: 38.5 kB / 0.4899 GB, free: 9.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.1148, allocations: 4 kB / 0.4899 GB, free: 9.578 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.1392/0.254, allocations: 6.378 MB / 0.4961 GB, free: 3.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.2541, allocations: 59.34 kB / 0.4961 GB, free: 3.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.544e-05/0.2542, allocations: 97.84 kB / 0.4962 GB, free: 2.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.87e-05/0.2542, allocations: 29.7 kB / 0.4963 GB, free: 2.945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.64e-05/0.2543, allocations: 88.14 kB / 0.4964 GB, free: 2.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.148e-05/0.2544, allocations: 59.11 kB / 0.4964 GB, free: 2.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.2546, allocations: 89.58 kB / 0.4965 GB, free: 2.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2547, allocations: 326.8 kB / 0.4968 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005339/0.2552, allocations: 223.8 kB / 0.497 GB, free: 2.156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005328/0.2558, allocations: 235.8 kB / 0.4972 GB, free: 1.926 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/0.2578, allocations: 0.5517 MB / 0.4978 GB, free: 1.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.2579, allocations: 480 / 0.4978 GB, free: 1.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00185/0.2597, allocations: 0.6217 MB / 0.4984 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.2598, allocations: 7.438 kB / 0.4984 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2598, allocations: 3.938 kB / 0.4984 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2598, allocations: 4 kB / 0.4984 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.2604, allocations: 111.8 kB / 0.4985 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2605, allocations: 0 / 0.4985 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000443/0.2609, allocations: 19.97 kB / 0.4985 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.938e-05/0.261, allocations: 35.94 kB / 0.4986 GB, free: 0.5703 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.0001624/0.2612, allocations: 125.7 kB / 0.4987 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.867e-05/0.2612, allocations: 11.89 kB / 0.4987 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002151/0.2634, allocations: 0.7282 MB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2634, allocations: 4 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.2634, allocations: 0 / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2634, allocations: 0 / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004012/0.2675, allocations: 1.172 MB / 0.5006 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.2675, allocations: 4 kB / 0.5006 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/0.268, allocations: 103.8 kB / 0.5007 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.043e-05/0.2681, allocations: 8.188 kB / 0.5007 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.352e-05/0.2681, allocations: 23.95 kB / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.2681, allocations: 4 kB / 0.5007 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.2681, allocations: 3.938 kB / 0.5007 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.2698, allocations: 0.5744 MB / 0.5013 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.2699, allocations: 93 kB / 0.5013 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.2699, allocations: 4 kB / 0.5014 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004046/0.2704, allocations: 27.97 kB / 0.5014 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.637e-05/0.2704, allocations: 15.92 kB / 0.5014 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.433e-05/0.2704, allocations: 31.95 kB / 0.5014 GB, free: 13.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.2705, allocations: 87.2 kB / 0.5015 GB, free: 13.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2705, allocations: 0 / 0.5015 GB, free: 13.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001882/0.2724, allocations: 0.6406 MB / 0.5021 GB, free: 12.77 MB / 398.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.006675/0.2791, allocations: 1.31 MB / 0.5034 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002093/0.2812, allocations: 451.5 kB / 0.5038 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/0.2812, allocations: 4 kB / 0.5038 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007094/0.282, allocations: 199.7 kB / 0.504 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.2823, allocations: 12.38 kB / 0.5041 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003245/0.2856, allocations: 0.6052 MB / 0.5046 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.2859, allocations: 0.6965 MB / 0.5053 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004206/0.2863, allocations: 128.9 kB / 0.5054 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.2866, allocations: 95.28 kB / 0.5055 GB, free: 9.145 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2867, allocations: 3.938 kB / 0.5055 GB, free: 9.141 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3063/0.593, allocations: 58.75 MB / 0.5629 GB, free: 20.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.798, allocations: 10.72 kB / 0.5629 GB, free: 20.23 MB / 414.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches