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.001446/0.001446, allocations: 104.2 kB / 16.4 MB, free: 6.461 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.001443/0.001443, allocations: 189.5 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.338/1.338, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2255/0.2255, allocations: 43.53 MB / 314.1 MB, free: 452 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.001544/0.001544, allocations: 67.91 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1193, allocations: 57.8 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001558/0.1209, allocations: 0.5341 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007579/0.1217, allocations: 417.5 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.134e-05/0.1217, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.834e-05/0.1217, allocations: 3.938 kB / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.892e-05/0.1218, allocations: 0 / 0.4883 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.1223, allocations: 131.6 kB / 0.4884 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.245e-05/0.1223, allocations: 27.97 kB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.347e-05/0.1224, allocations: 8 kB / 0.4885 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.034e-05/0.1224, allocations: 11.92 kB / 0.4885 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.042e-05/0.1225, allocations: 15.92 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.1225, allocations: 4 kB / 0.4885 GB, free: 11.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002419/0.1227, allocations: 167.7 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.122e-05/0.1228, allocations: 3.938 kB / 0.4887 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.081e-05/0.1228, allocations: 11.94 kB / 0.4887 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.123, allocations: 131.7 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.123, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.123, allocations: 0 / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.123, allocations: 4 kB / 0.4888 GB, free: 10.84 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.0004284/0.1235, allocations: 367.3 kB / 0.4892 GB, free: 10.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1235, allocations: 15.89 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.319e-05/0.1235, allocations: 34.75 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.554e-05/0.1236, allocations: 4.938 kB / 0.4892 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.1237, allocations: 176.2 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.005e-06/0.1237, allocations: 384 / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.1237, allocations: 8.375 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.1239, allocations: 54 kB / 0.4894 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1239, allocations: 8 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.1239, allocations: 3.984 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1239, allocations: 0 / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.095e-05/0.124, allocations: 27.92 kB / 0.4895 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.1241, allocations: 169.6 kB / 0.4896 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.1244, allocations: 58.55 kB / 0.4897 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.559e-05/0.1244, allocations: 24.86 kB / 0.4897 GB, free: 9.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000258/0.1247, allocations: 109.1 kB / 0.4898 GB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.1247, allocations: 38.78 kB / 0.4899 GB, free: 9.578 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 9.92e-07/0.1247, allocations: 3.938 kB / 0.4899 GB, free: 9.574 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.1374/0.2621, allocations: 6.383 MB / 0.4961 GB, free: 3.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.2622, allocations: 55.41 kB / 0.4962 GB, free: 3.082 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.2623, allocations: 101.9 kB / 0.4962 GB, free: 2.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.729e-05/0.2624, allocations: 29.7 kB / 0.4963 GB, free: 2.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.092e-05/0.2625, allocations: 88.12 kB / 0.4964 GB, free: 2.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.2626, allocations: 59.11 kB / 0.4964 GB, free: 2.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.2629, allocations: 85.59 kB / 0.4965 GB, free: 2.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.263, allocations: 330.8 kB / 0.4968 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005432/0.2636, allocations: 228.3 kB / 0.497 GB, free: 2.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005579/0.2642, allocations: 227.8 kB / 0.4972 GB, free: 1.922 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.2663, allocations: 0.559 MB / 0.4978 GB, free: 1.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2663, allocations: 256 / 0.4978 GB, free: 1.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001915/0.2682, allocations: 0.6096 MB / 0.4984 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.2683, allocations: 7.938 kB / 0.4984 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.2683, allocations: 8 kB / 0.4984 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.2683, allocations: 7.984 kB / 0.4984 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006676/0.269, allocations: 103.8 kB / 0.4985 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.269, allocations: 0 / 0.4985 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004446/0.2695, allocations: 23.95 kB / 0.4985 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.341e-05/0.2695, allocations: 35.94 kB / 0.4986 GB, free: 0.5625 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.0001669/0.2697, allocations: 125.7 kB / 0.4987 GB, free: 440 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.468e-05/0.2698, allocations: 11.91 kB / 0.4987 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/0.2719, allocations: 0.7163 MB / 0.4994 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.272, allocations: 4 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.272, allocations: 0 / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.272, allocations: 3.984 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004059/0.2761, allocations: 1.176 MB / 0.5006 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.2761, allocations: 4 kB / 0.5006 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005445/0.2766, allocations: 96.05 kB / 0.5007 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.2766, allocations: 4 kB / 0.5007 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.586e-05/0.2767, allocations: 27.95 kB / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.2767, allocations: 4 kB / 0.5007 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2767, allocations: 3.938 kB / 0.5007 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.2784, allocations: 0.5821 MB / 0.5013 GB, free: 13.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.2785, allocations: 89.02 kB / 0.5013 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.2785, allocations: 8 kB / 0.5013 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004253/0.279, allocations: 27.95 kB / 0.5014 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.279, allocations: 15.92 kB / 0.5014 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.279, allocations: 27.95 kB / 0.5014 GB, free: 13.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.618e-05/0.2791, allocations: 91.22 kB / 0.5015 GB, free: 13.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2791, allocations: 0 / 0.5015 GB, free: 13.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001664/0.2808, allocations: 0.6445 MB / 0.5021 GB, free: 12.76 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.00556/0.2864, allocations: 1.306 MB / 0.5034 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.2875, allocations: 455.5 kB / 0.5038 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2876, allocations: 0 / 0.5038 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005204/0.2881, allocations: 208.1 kB / 0.504 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.2884, allocations: 8 kB / 0.5041 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003573/0.292, allocations: 0.6091 MB / 0.5046 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.2923, allocations: 0.6926 MB / 0.5053 GB, free: 9.359 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004479/0.2928, allocations: 128.8 kB / 0.5054 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.2931, allocations: 95.28 kB / 0.5055 GB, free: 9.137 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2931, allocations: 0 / 0.5055 GB, free: 9.137 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3138/0.6069, allocations: 58.75 MB / 0.5629 GB, free: 20.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/8.407, allocations: 11.5 kB / 0.5629 GB, free: 20.11 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