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.001424/0.001423, allocations: 113.4 kB / 17.78 MB, free: 5.27 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.001607/0.001607, allocations: 180.1 kB / 18.71 MB, free: 4.348 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2203/0.2203, allocations: 44.18 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 75.88 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3565, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001656/0.3582, allocations: 0.5405 MB / 0.5189 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006778/0.3589, allocations: 407.6 kB / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.955e-05/0.3589, allocations: 0 / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.504e-05/0.3589, allocations: 3.938 kB / 0.5193 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.484e-05/0.359, allocations: 5.375 kB / 0.5193 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004436/0.3594, allocations: 137.4 kB / 0.5195 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.3595, allocations: 23.19 kB / 0.5195 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.3596, allocations: 4.375 kB / 0.5195 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.192e-05/0.3596, allocations: 17.94 kB / 0.5195 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.529e-05/0.3596, allocations: 17.67 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.3597, allocations: 1.438 kB / 0.5195 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002545/0.3599, allocations: 169.4 kB / 0.5197 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.3599, allocations: 7.203 kB / 0.5197 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.702e-05/0.36, allocations: 20.64 kB / 0.5197 GB, free: 2.52 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.3602, allocations: 118.4 kB / 0.5198 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3602, allocations: 0 / 0.5198 GB, free: 2.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3602, allocations: 2.156 kB / 0.5198 GB, free: 2.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.3602, allocations: 0 / 0.5198 GB, free: 2.484 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.0004066/0.3606, allocations: 365.7 kB / 0.5202 GB, free: 2.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3607, allocations: 9.938 kB / 0.5202 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.5e-05/0.3607, allocations: 33.08 kB / 0.5202 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.3607, allocations: 7.156 kB / 0.5202 GB, free: 2.062 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.643e-05/0.3608, allocations: 175.6 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.3608, allocations: 2.469 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.3608, allocations: 3.219 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.361, allocations: 57.08 kB / 0.5205 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.361, allocations: 1.312 kB / 0.5205 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.361, allocations: 0.7969 kB / 0.5205 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.361, allocations: 0.9375 kB / 0.5205 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.907e-05/0.3611, allocations: 33.73 kB / 0.5205 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001361/0.3612, allocations: 173 kB / 0.5207 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.3614, allocations: 54.39 kB / 0.5207 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.705e-05/0.3615, allocations: 24.28 kB / 0.5207 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.3618, allocations: 109.1 kB / 0.5208 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.573e-05/0.3618, allocations: 43.97 kB / 0.5209 GB, free: 1.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.3618, allocations: 3.938 kB / 0.5209 GB, free: 1.402 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.1755/0.5374, allocations: 6.369 MB / 0.5271 GB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.5374, allocations: 57.92 kB / 0.5271 GB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.5376, allocations: 103.8 kB / 0.5272 GB, free: 14.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.97e-05/0.5376, allocations: 26.8 kB / 0.5273 GB, free: 14.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.46e-05/0.5377, allocations: 88.98 kB / 0.5274 GB, free: 14.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.963e-05/0.5378, allocations: 58.52 kB / 0.5274 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.538, allocations: 88.38 kB / 0.5275 GB, free: 14.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5381, allocations: 325.8 kB / 0.5278 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.5387, allocations: 224.2 kB / 0.528 GB, free: 13.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005578/0.5393, allocations: 226.6 kB / 0.5282 GB, free: 13.67 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.5415, allocations: 0.5592 MB / 0.5288 GB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.5415, allocations: 0 / 0.5288 GB, free: 13.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002008/0.5435, allocations: 0.6153 MB / 0.5294 GB, free: 13.05 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.5435, allocations: 7.812 kB / 0.5294 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.5435, allocations: 6.984 kB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.5436, allocations: 0 / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006881/0.5443, allocations: 106.9 kB / 0.5295 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5443, allocations: 1 kB / 0.5295 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000462/0.5448, allocations: 33.03 kB / 0.5295 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.239e-05/0.5449, allocations: 31.19 kB / 0.5296 GB, free: 12.96 MB / 398.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.0002121/0.5451, allocations: 125.8 kB / 0.5297 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.5452, allocations: 8.594 kB / 0.5297 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002373/0.5476, allocations: 0.7271 MB / 0.5304 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.5476, allocations: 2.219 kB / 0.5304 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.537e-06/0.5476, allocations: 5.203 kB / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.5476, allocations: 3.984 kB / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/0.5517, allocations: 1.17 MB / 0.5316 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.5518, allocations: 1.219 kB / 0.5316 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005388/0.5523, allocations: 94.23 kB / 0.5316 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.5523, allocations: 2.25 kB / 0.5316 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.5524, allocations: 29.86 kB / 0.5317 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.163e-06/0.5524, allocations: 2.562 kB / 0.5317 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5524, allocations: 10.22 kB / 0.5317 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.5542, allocations: 0.5801 MB / 0.5323 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.855e-05/0.5543, allocations: 84.3 kB / 0.5323 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.5543, allocations: 3.406 kB / 0.5323 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.5547, allocations: 29.23 kB / 0.5324 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.5548, allocations: 22.33 kB / 0.5324 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/0.5548, allocations: 28.45 kB / 0.5324 GB, free: 10.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.72e-05/0.5549, allocations: 83.5 kB / 0.5325 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5549, allocations: 0 / 0.5325 GB, free: 10.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002139/0.557, allocations: 0.6473 MB / 0.5331 GB, free: 10.82 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.005845/0.5629, allocations: 1.307 MB / 0.5344 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.5643, allocations: 461.7 kB / 0.5348 GB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5643, allocations: 3.938 kB / 0.5348 GB, free: 9.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005586/0.5649, allocations: 204.1 kB / 0.535 GB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.5652, allocations: 13.66 kB / 0.5351 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.5687, allocations: 0.6195 MB / 0.5357 GB, free: 9.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.569, allocations: 0.6943 MB / 0.5363 GB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004581/0.5695, allocations: 124.1 kB / 0.5365 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003623/0.5699, allocations: 107.5 kB / 0.5366 GB, free: 8.195 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5699, allocations: 0 / 0.5366 GB, free: 8.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.67, allocations: 58.76 MB / 0.5939 GB, free: 14.31 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.759, allocations: 14.31 kB / 0.594 GB, free: 14.3 MB / 462.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