Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008345/0.0008346, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.108/1.108, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006618/0.0006618, allocations: 86.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2828/0.2828, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.000374, allocations: 8 kB / 432.1 MB, free: 5.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09636/0.09675, allocations: 58.85 MB / 490.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0005572/0.09735, allocations: 268.4 kB / 491.2 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005916/0.09795, allocations: 382 kB / 491.6 MB, free: 9.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.134e-05/0.09799, allocations: 0 / 491.6 MB, free: 9.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.163e-05/0.09801, allocations: 0 / 491.6 MB, free: 9.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.577e-05/0.09804, allocations: 4 kB / 491.6 MB, free: 9.926 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.09842, allocations: 95.72 kB / 491.7 MB, free: 9.832 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.719e-05/0.09848, allocations: 23.97 kB / 491.7 MB, free: 9.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.628e-05/0.09852, allocations: 3.984 kB / 491.7 MB, free: 9.805 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.208e-05/0.09855, allocations: 15.94 kB / 491.7 MB, free: 9.789 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.618e-05/0.0986, allocations: 15.92 kB / 491.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.248e-06/0.09862, allocations: 0 / 491.7 MB, free: 9.773 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.09885, allocations: 151.8 kB / 491.9 MB, free: 9.625 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.09888, allocations: 12 kB / 491.9 MB, free: 9.613 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.09891, allocations: 41.62 kB / 491.9 MB, free: 9.566 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.09905, allocations: 75.88 kB / 492 MB, free: 9.492 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09906, allocations: 0 / 492 MB, free: 9.492 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09907, allocations: 4 kB / 492 MB, free: 9.488 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.09908, allocations: 0 / 492 MB, free: 9.488 MB / 378.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.0003767/0.09946, allocations: 355.7 kB / 492.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.09951, allocations: 12.03 kB / 492.4 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.224e-05/0.09955, allocations: 42.67 kB / 492.4 MB, free: 9.031 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.269e-05/0.09958, allocations: 12.84 kB / 492.4 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.09968, allocations: 164.3 kB / 492.6 MB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.0997, allocations: 4.375 kB / 492.6 MB, free: 8.816 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.09973, allocations: 4.375 kB / 492.6 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.09984, allocations: 57.98 kB / 492.6 MB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.09986, allocations: 11.84 kB / 492.6 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-06/0.09988, allocations: 0 / 492.6 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.09989, allocations: 0 / 492.6 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.029e-05/0.09995, allocations: 23.98 kB / 492.7 MB, free: 8.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.1001, allocations: 177.6 kB / 492.8 MB, free: 8.492 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.1003, allocations: 50.84 kB / 492.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.49e-05/0.1004, allocations: 32.78 kB / 492.9 MB, free: 8.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002556/0.1006, allocations: 121 kB / 493 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1007, allocations: 38.5 kB / 493.1 MB, free: 8.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.1007, allocations: 0 / 493.1 MB, free: 8.215 MB / 378.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.1305/0.2312, allocations: 6.604 MB / 499.7 MB, free: 1.574 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.382e-05/0.2313, allocations: 55.41 kB / 499.7 MB, free: 1.508 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.57e-05/0.2314, allocations: 101.8 kB / 499.8 MB, free: 1.398 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.2314, allocations: 29.7 kB / 499.9 MB, free: 1.363 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.076e-05/0.2315, allocations: 88.61 kB / 500 MB, free: 1.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/0.2315, allocations: 67 kB / 0.4883 GB, free: 1.207 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/0.2316, allocations: 4 kB / 0.4883 GB, free: 1.203 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2317, allocations: 318.8 kB / 0.4886 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005089/0.2322, allocations: 247.8 kB / 0.4888 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005084/0.2327, allocations: 251.8 kB / 0.4891 GB, free: 404 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1681/0.4008, allocations: 0.5836 MB / 0.4897 GB, free: 41.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4009, allocations: 0 / 0.4897 GB, free: 41.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001907/0.4028, allocations: 0.635 MB / 0.4903 GB, free: 41.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4028, allocations: 5.062 kB / 0.4903 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.4028, allocations: 1.969 kB / 0.4903 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.4029, allocations: 1.281 kB / 0.4903 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007024/0.4036, allocations: 118.8 kB / 0.4904 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.4036, allocations: 1.609 kB / 0.4904 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.4041, allocations: 33.55 kB / 0.4904 GB, free: 41.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.788e-05/0.4041, allocations: 34.89 kB / 0.4905 GB, free: 41.58 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.4043, allocations: 120.5 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.4043, allocations: 9.516 kB / 0.4906 GB, free: 41.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.4064, allocations: 0.7615 MB / 0.4913 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.4065, allocations: 2.219 kB / 0.4913 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.4065, allocations: 1.531 kB / 0.4913 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4065, allocations: 1.453 kB / 0.4913 GB, free: 41.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004005/0.4105, allocations: 1.226 MB / 0.4925 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4105, allocations: 1.156 kB / 0.4925 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/0.4111, allocations: 112.7 kB / 0.4926 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.4111, allocations: 3.078 kB / 0.4926 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.554e-05/0.4111, allocations: 29.41 kB / 0.4927 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4111, allocations: 5.109 kB / 0.4927 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4111, allocations: 0 / 0.4927 GB, free: 41.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.4127, allocations: 0.6132 MB / 0.4933 GB, free: 40.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.4127, allocations: 85.88 kB / 0.4934 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.808e-05/0.4128, allocations: 7.328 kB / 0.4934 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004062/0.4132, allocations: 38.73 kB / 0.4934 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.4132, allocations: 16.3 kB / 0.4934 GB, free: 40.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.4133, allocations: 32.02 kB / 0.4934 GB, free: 40.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.602e-05/0.4133, allocations: 86.69 kB / 0.4935 GB, free: 40.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4133, allocations: 0.5469 kB / 0.4935 GB, free: 40.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001624/0.415, allocations: 0.6482 MB / 0.4942 GB, free: 40.68 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004548/0.4195, allocations: 1.345 MB / 0.4955 GB, free: 39.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001049/0.4206, allocations: 486 kB / 0.4959 GB, free: 39.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4206, allocations: 3.875 kB / 0.4959 GB, free: 39.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004706/0.4211, allocations: 216.8 kB / 0.4962 GB, free: 39.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.4213, allocations: 16.42 kB / 0.4962 GB, free: 39.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.4244, allocations: 0.705 MB / 0.4969 GB, free: 39.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.4245, allocations: 0.6943 MB / 0.4975 GB, free: 38.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.4248, allocations: 100.2 kB / 0.4976 GB, free: 38.92 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4248, allocations: 0 / 0.4976 GB, free: 38.92 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.699/5.124, allocations: 15.07 MB / 0.5123 GB, free: 37.93 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches