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.001093/0.001093, allocations: 103.7 kB / 15.98 MB, free: 6.336 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.001024/0.001024, allocations: 194.7 kB / 16.91 MB, free: 6.188 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.341/1.341, allocations: 205.1 MB / 222.8 MB, free: 4.684 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.3146/0.3146, allocations: 43.5 MB / 313.6 MB, free: 8.523 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.001427/0.001428, allocations: 71.91 kB / 382.3 MB, free: 8.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 57.79 MB / 440.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001686/0.1063, allocations: 0.6009 MB / 440.7 MB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006916/0.107, allocations: 414.2 kB / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.1071, allocations: 0 / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.1071, allocations: 3.938 kB / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.587e-05/0.1071, allocations: 0 / 441.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004309/0.1076, allocations: 124 kB / 441.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.786e-05/0.1076, allocations: 23.92 kB / 441.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.714e-05/0.1077, allocations: 0 / 441.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.675e-05/0.1077, allocations: 19.94 kB / 441.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.538e-05/0.1078, allocations: 23.84 kB / 441.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.468e-06/0.1078, allocations: 0 / 441.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.108, allocations: 155.8 kB / 441.5 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.764e-05/0.108, allocations: 15.92 kB / 441.5 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.1081, allocations: 7.938 kB / 441.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.1083, allocations: 127.8 kB / 441.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1083, allocations: 3.938 kB / 441.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1083, allocations: 0 / 441.6 MB, free: 13.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1083, allocations: 0 / 441.6 MB, free: 13.15 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.0004088/0.1087, allocations: 379.2 kB / 442 MB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1087, allocations: 11.89 kB / 442 MB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.257e-05/0.1088, allocations: 30.75 kB / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.535e-05/0.1088, allocations: 4.938 kB / 442 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1089, allocations: 168.3 kB / 442.2 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.1089, allocations: 8.375 kB / 442.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.234e-05/0.109, allocations: 4.375 kB / 442.2 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.1091, allocations: 57.94 kB / 442.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1091, allocations: 0 / 442.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.1091, allocations: 3.984 kB / 442.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1091, allocations: 4 kB / 442.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.205e-05/0.1092, allocations: 31.97 kB / 442.3 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.1094, allocations: 165.7 kB / 442.5 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.1096, allocations: 58.58 kB / 442.5 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.613e-05/0.1097, allocations: 24.86 kB / 442.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/0.11, allocations: 113.1 kB / 442.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.11, allocations: 34.5 kB / 442.7 MB, free: 11.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.11, allocations: 0 / 442.7 MB, free: 11.88 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.1372/0.2472, allocations: 6.386 MB / 449.1 MB, free: 5.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.2473, allocations: 55.41 kB / 449.1 MB, free: 5.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.325e-05/0.2474, allocations: 97.86 kB / 449.2 MB, free: 5.285 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/0.2475, allocations: 29.7 kB / 449.2 MB, free: 5.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.471e-05/0.2475, allocations: 92.12 kB / 449.3 MB, free: 5.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.2476, allocations: 63.09 kB / 449.4 MB, free: 5.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.2478, allocations: 85.59 kB / 449.5 MB, free: 5.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.2479, allocations: 322.8 kB / 449.8 MB, free: 4.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005137/0.2484, allocations: 223.8 kB / 450 MB, free: 4.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.2489, allocations: 231.8 kB / 450.2 MB, free: 4.234 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/0.251, allocations: 0.566 MB / 450.8 MB, free: 3.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.251, allocations: 0 / 450.8 MB, free: 3.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001859/0.2529, allocations: 0.6027 MB / 451.4 MB, free: 3.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2529, allocations: 8 kB / 451.4 MB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.2529, allocations: 0 / 451.4 MB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.2529, allocations: 0 / 451.4 MB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00069/0.2536, allocations: 111.8 kB / 451.5 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.2537, allocations: 0 / 451.5 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.2541, allocations: 31.95 kB / 451.6 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/0.2542, allocations: 32.19 kB / 451.6 MB, free: 2.879 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.0001738/0.2544, allocations: 117.8 kB / 451.7 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.692e-05/0.2545, allocations: 7.906 kB / 451.7 MB, free: 2.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002134/0.2566, allocations: 0.7318 MB / 452.4 MB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2566, allocations: 4 kB / 452.5 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2566, allocations: 0 / 452.5 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2566, allocations: 0 / 452.5 MB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00407/0.2607, allocations: 1.172 MB / 453.6 MB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2607, allocations: 4 kB / 453.6 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006014/0.2613, allocations: 99.98 kB / 453.7 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.2614, allocations: 4 kB / 453.7 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.357e-05/0.2614, allocations: 27.95 kB / 453.8 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.2614, allocations: 0 / 453.8 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2614, allocations: 4 kB / 453.8 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1867/0.4481, allocations: 0.5858 MB / 454.3 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.724e-05/0.4482, allocations: 86.95 kB / 454.4 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.4483, allocations: 4.281 kB / 454.4 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.4488, allocations: 28.8 kB / 454.5 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.004e-05/0.4489, allocations: 14.05 kB / 454.5 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.842e-05/0.449, allocations: 28.84 kB / 454.5 MB, free: 48.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.449, allocations: 85.97 kB / 454.6 MB, free: 48.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.449, allocations: 3.75 kB / 454.6 MB, free: 48.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001727/0.4507, allocations: 0.6472 MB / 455.2 MB, free: 48.15 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.004566/0.4553, allocations: 1.302 MB / 456.5 MB, free: 47.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.4564, allocations: 458.1 kB / 457 MB, free: 47.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4564, allocations: 3.219 kB / 457 MB, free: 47.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004663/0.4569, allocations: 203.3 kB / 457.2 MB, free: 47.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/0.4572, allocations: 14.75 kB / 457.2 MB, free: 47.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.4602, allocations: 0.6386 MB / 457.8 MB, free: 47.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.4603, allocations: 0.6955 MB / 458.5 MB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005272/0.4609, allocations: 123.3 kB / 458.7 MB, free: 46.47 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000303/0.4612, allocations: 102.9 kB / 458.8 MB, free: 46.46 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4612, allocations: 0 / 458.8 MB, free: 46.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07517/0.5364, allocations: 58.43 MB / 0.5051 GB, free: 17.92 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001297/0.5365, allocations: 215.8 kB / 0.5053 GB, free: 17.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/2.9, allocations: 0 / 0.5053 GB, free: 17.66 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