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.001556/0.001556, allocations: 101.8 kB / 16.27 MB, free: 5.891 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.001231/0.001231, allocations: 186.8 kB / 17.19 MB, free: 5.543 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.244/1.244, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.197/0.197, allocations: 43.52 MB / 313.9 MB, free: 0.5352 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.002239/0.002239, allocations: 69.73 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09572, allocations: 57.79 MB / 440.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001547/0.09732, allocations: 0.538 MB / 441.2 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005348/0.09787, allocations: 403.4 kB / 441.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.863e-05/0.0979, allocations: 0 / 441.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.162e-05/0.09793, allocations: 7.875 kB / 441.6 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 1.799e-05/0.09795, allocations: 3.938 kB / 441.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003274/0.09828, allocations: 143.8 kB / 441.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 3.217e-05/0.09832, allocations: 23.98 kB / 441.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.802e-05/0.09836, allocations: 3.984 kB / 441.7 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.09838, allocations: 15.92 kB / 441.7 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.17e-05/0.09841, allocations: 15.92 kB / 441.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.09843, allocations: 0 / 441.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.09862, allocations: 163.8 kB / 441.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.008e-05/0.09864, allocations: 8 kB / 441.9 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.789e-05/0.09866, allocations: 23.86 kB / 442 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.09881, allocations: 119.8 kB / 442.1 MB, free: 5.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.09882, allocations: 4 kB / 442.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.09883, allocations: 0 / 442.1 MB, free: 5.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.407e-06/0.09883, allocations: 0 / 442.1 MB, free: 5.375 MB / 318.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.0002522/0.09909, allocations: 367.2 kB / 442.4 MB, free: 4.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.872e-05/0.09913, allocations: 15.89 kB / 442.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.637e-05/0.09916, allocations: 38.73 kB / 442.5 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.004e-05/0.09918, allocations: 4.938 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.617e-05/0.09924, allocations: 172.2 kB / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.188e-06/0.09926, allocations: 4.375 kB / 442.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.09928, allocations: 8.375 kB / 442.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.307e-05/0.09937, allocations: 53.98 kB / 442.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.09939, allocations: 0 / 442.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.0994, allocations: 4 kB / 442.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-06/0.0994, allocations: 0 / 442.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.268e-05/0.09946, allocations: 27.92 kB / 442.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001029/0.09957, allocations: 173.6 kB / 442.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001565/0.09973, allocations: 54.56 kB / 443 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.644e-05/0.09978, allocations: 29.12 kB / 443 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002132/0.1, allocations: 117 kB / 443.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.393e-05/0.1, allocations: 34.5 kB / 443.2 MB, free: 4.105 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 9.81e-07/0.1, allocations: 0 / 443.2 MB, free: 4.105 MB / 318.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.1356/0.2356, allocations: 6.388 MB / 449.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.769e-05/0.2357, allocations: 59.34 kB / 449.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.013e-05/0.2358, allocations: 101.8 kB / 449.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.2358, allocations: 33.7 kB / 449.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.2358, allocations: 80.14 kB / 449.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.2359, allocations: 59.11 kB / 449.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.2361, allocations: 85.59 kB / 450 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.2362, allocations: 330.8 kB / 450.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.2367, allocations: 223.8 kB / 450.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005252/0.2373, allocations: 231.8 kB / 450.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002002/0.2393, allocations: 0.5543 MB / 451.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.2393, allocations: 0 / 451.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00173/0.241, allocations: 0.6143 MB / 451.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.241, allocations: 8 kB / 451.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2411, allocations: 0 / 451.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.2411, allocations: 0 / 451.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/0.2417, allocations: 103.8 kB / 452 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.2417, allocations: 0 / 452 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.2421, allocations: 23.97 kB / 452 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.335e-05/0.2422, allocations: 35.94 kB / 452.1 MB, free: 11.11 MB / 334.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.0001294/0.2423, allocations: 130.8 kB / 452.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.533e-05/0.2424, allocations: 7.906 kB / 452.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.2444, allocations: 0.7315 MB / 452.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.2445, allocations: 11.97 kB / 452.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2445, allocations: 0 / 452.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2445, allocations: 3.938 kB / 452.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003674/0.2481, allocations: 1.161 MB / 454.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2482, allocations: 4 kB / 454.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005035/0.2487, allocations: 91.86 kB / 454.2 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.2487, allocations: 4 kB / 454.2 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.341e-05/0.2487, allocations: 31.89 kB / 454.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.2488, allocations: 12.39 kB / 454.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.2488, allocations: 8.188 kB / 454.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001585/0.2503, allocations: 0.5782 MB / 454.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.158e-05/0.2504, allocations: 85.02 kB / 454.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.911e-05/0.2505, allocations: 11.98 kB / 454.9 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/0.2508, allocations: 23.91 kB / 454.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.2509, allocations: 19.98 kB / 455 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.161e-05/0.2509, allocations: 27.95 kB / 455 MB, free: 8.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.102e-05/0.251, allocations: 91.2 kB / 455.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.251, allocations: 0 / 455.1 MB, free: 7.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001585/0.2526, allocations: 0.6444 MB / 455.7 MB, free: 7.297 MB / 334.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.004821/0.2574, allocations: 1.291 MB / 457 MB, free: 5.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.2585, allocations: 466.9 kB / 457.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2586, allocations: 0 / 457.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.2591, allocations: 202.9 kB / 457.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.2594, allocations: 12 kB / 457.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.2625, allocations: 0.621 MB / 458.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002077/0.2627, allocations: 0.6926 MB / 459 MB, free: 3.898 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005082/0.2632, allocations: 128.9 kB / 459.1 MB, free: 3.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.2635, allocations: 95.28 kB / 459.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2635, allocations: 0 / 459.2 MB, free: 3.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.866/2.129, allocations: 58.52 MB / 0.5056 GB, free: 8.934 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.431/10.56, allocations: 11.77 kB / 0.5056 GB, free: 8.922 MB / 398.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