Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_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.0009143/0.0009143, allocations: 95.16 kB / 17.35 MB, free: 6.371 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.001193/0.001193, allocations: 179.3 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1706/0.1706, allocations: 44.25 MB / 337.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002705, allocations: 8.281 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08556, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.0005434/0.08614, allocations: 266.7 kB / 472.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.08683, allocations: 432.6 kB / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.476e-05/0.08686, allocations: 0 / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.08689, allocations: 3.938 kB / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.648e-05/0.08692, allocations: 0 / 473 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.08726, allocations: 99.77 kB / 473.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.466e-05/0.08732, allocations: 19.98 kB / 473.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.08736, allocations: 0 / 473.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.321e-05/0.08739, allocations: 15.94 kB / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.08745, allocations: 19.92 kB / 473.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.08746, allocations: 3.984 kB / 473.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.08769, allocations: 159.8 kB / 473.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.08771, allocations: 15.92 kB / 473.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.775e-05/0.08775, allocations: 29.64 kB / 473.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.08793, allocations: 127.7 kB / 473.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.08794, allocations: 0 / 473.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.08794, allocations: 0 / 473.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.08795, allocations: 0 / 473.5 MB, free: 12.07 MB / 350.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.000334/0.08829, allocations: 366 kB / 473.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.08833, allocations: 8.031 kB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.08837, allocations: 42.69 kB / 473.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.885e-05/0.08839, allocations: 0.9375 kB / 473.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.772e-05/0.08849, allocations: 180.2 kB / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.945e-06/0.08851, allocations: 384 / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.08853, allocations: 8.375 kB / 474.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.08864, allocations: 50 kB / 474.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.08866, allocations: 4 kB / 474.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.08867, allocations: 15.94 kB / 474.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.08868, allocations: 0 / 474.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.879e-05/0.08874, allocations: 27.97 kB / 474.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.0889, allocations: 161.7 kB / 474.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.08909, allocations: 62.81 kB / 474.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.214e-05/0.08914, allocations: 28.8 kB / 474.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002481/0.08939, allocations: 117.1 kB / 474.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.08942, allocations: 42.44 kB / 474.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.113e-06/0.08943, allocations: 0 / 474.6 MB, free: 10.79 MB / 350.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.1412/0.2306, allocations: 6.612 MB / 481.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.2306, allocations: 59.41 kB / 481.3 MB, free: 4.074 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.477e-05/0.2307, allocations: 106 kB / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.2308, allocations: 25.7 kB / 481.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.911e-05/0.2308, allocations: 84.14 kB / 481.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.812e-05/0.2309, allocations: 59.11 kB / 481.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.214e-05/0.231, allocations: 21.7 kB / 481.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.2311, allocations: 322.8 kB / 481.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005272/0.2316, allocations: 239.8 kB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000515/0.2321, allocations: 251.8 kB / 482.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.2342, allocations: 0.5888 MB / 483 MB, free: 2.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.2342, allocations: 3.938 kB / 483 MB, free: 2.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001761/0.2359, allocations: 0.6417 MB / 483.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.236, allocations: 4 kB / 483.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.236, allocations: 4.062 kB / 483.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.236, allocations: 8 kB / 483.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00064/0.2366, allocations: 111.8 kB / 483.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.2367, allocations: 0 / 483.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000439/0.2371, allocations: 35.91 kB / 483.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.2372, allocations: 35.94 kB / 483.8 MB, free: 1.516 MB / 350.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.000144/0.2373, allocations: 117.8 kB / 483.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.2374, allocations: 15.83 kB / 483.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.2395, allocations: 0.7657 MB / 484.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2395, allocations: 0 / 484.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2395, allocations: 4 kB / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2396, allocations: 0 / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003941/0.2435, allocations: 1.235 MB / 485.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2435, allocations: 0 / 485.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.244, allocations: 120.4 kB / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2441, allocations: 0 / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.591e-05/0.2441, allocations: 27.95 kB / 486.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.2441, allocations: 0 / 486.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.2441, allocations: 4 kB / 486.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.2457, allocations: 0.6133 MB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.2457, allocations: 93 kB / 486.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.693e-05/0.2458, allocations: 8 kB / 486.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004006/0.2462, allocations: 31.97 kB / 486.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.2462, allocations: 7.984 kB / 486.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.2463, allocations: 31.95 kB / 486.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.975e-05/0.2463, allocations: 95.2 kB / 487 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2463, allocations: 0 / 487 MB, free: 14.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001575/0.2479, allocations: 0.6445 MB / 487.6 MB, free: 13.57 MB / 366.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.004558/0.2525, allocations: 1.352 MB / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.2536, allocations: 479.5 kB / 489.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2536, allocations: 0 / 489.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004958/0.2541, allocations: 220 kB / 489.6 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.2544, allocations: 15.88 kB / 489.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.2573, allocations: 0.6813 MB / 490.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2575, allocations: 0.7006 MB / 491 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004962/0.258, allocations: 116.9 kB / 491.1 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.2583, allocations: 107.2 kB / 491.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2584, allocations: 0 / 491.3 MB, free: 9.781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6428/0.9011, allocations: 58.02 MB / 0.5364 GB, free: 25.31 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.9013, allocations: 215.9 kB / 0.5366 GB, free: 25.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.241/3.143, allocations: 0 / 0.5366 GB, free: 25.06 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches