Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.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.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",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.00151/0.00151, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001756/0.001756, allocations: 183 kB / 18.72 MB, free: 4.332 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.44/1.44, 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.2169/0.2169, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3219, allocations: 60.84 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001696/0.3237, allocations: 0.5305 MB / 0.5189 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006545/0.3243, allocations: 358.5 kB / 0.5193 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.486e-05/0.3244, allocations: 4 kB / 0.5193 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.643e-05/0.3244, allocations: 5.031 kB / 0.5193 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.078e-05/0.3245, allocations: 3.938 kB / 0.5193 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004768/0.325, allocations: 108.4 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.503e-05/0.325, allocations: 20.36 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.927e-05/0.3251, allocations: 4.266 kB / 0.5194 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.472e-05/0.3251, allocations: 14.12 kB / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.587e-05/0.3252, allocations: 21.19 kB / 0.5195 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.3252, allocations: 6.312 kB / 0.5195 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.3255, allocations: 117.9 kB / 0.5196 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.3255, allocations: 9.844 kB / 0.5196 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.3255, allocations: 13.34 kB / 0.5196 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.3257, allocations: 98.05 kB / 0.5197 GB, free: 2.566 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3258, allocations: 0 / 0.5197 GB, free: 2.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3258, allocations: 1.5 kB / 0.5197 GB, free: 2.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.3258, allocations: 0 / 0.5197 GB, free: 2.566 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.0003704/0.3262, allocations: 362.1 kB / 0.52 GB, free: 2.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3262, allocations: 14.31 kB / 0.5201 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.787e-05/0.3262, allocations: 40.53 kB / 0.5201 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/0.3263, allocations: 7.547 kB / 0.5201 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.045e-05/0.3264, allocations: 167.2 kB / 0.5203 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.3264, allocations: 6.938 kB / 0.5203 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.3264, allocations: 7.359 kB / 0.5203 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.3266, allocations: 53.06 kB / 0.5203 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.3266, allocations: 13.81 kB / 0.5203 GB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.3266, allocations: 4 kB / 0.5203 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.3266, allocations: 5.062 kB / 0.5203 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.44e-05/0.3267, allocations: 29.67 kB / 0.5204 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001457/0.3269, allocations: 174.1 kB / 0.5205 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.3271, allocations: 53.84 kB / 0.5206 GB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.58e-05/0.3271, allocations: 27.42 kB / 0.5206 GB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.3274, allocations: 105.2 kB / 0.5207 GB, free: 1.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.3274, allocations: 40.45 kB / 0.5208 GB, free: 1.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.3274, allocations: 0 / 0.5208 GB, free: 1.469 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.04119/0.3686, allocations: 2.576 MB / 0.5233 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.3687, allocations: 54 kB / 0.5233 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.734e-05/0.3687, allocations: 99.77 kB / 0.5234 GB, free: 0.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.3688, allocations: 29.7 kB / 0.5234 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.177e-05/0.3688, allocations: 82.25 kB / 0.5235 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.3689, allocations: 67.83 kB / 0.5236 GB, free: 464 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.369, allocations: 59.53 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.239e-05/0.3691, allocations: 323.3 kB / 0.524 GB, free: 108 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003788/0.3695, allocations: 173.7 kB / 0.5241 GB, free: 44 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/0.3699, allocations: 172.1 kB / 0.5243 GB, free: 15.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.3709, allocations: 416.9 kB / 0.5247 GB, free: 15.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.371, allocations: 1.375 kB / 0.5247 GB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001068/0.372, allocations: 468.2 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.3721, allocations: 5.5 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3721, allocations: 0 / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3721, allocations: 1.375 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003692/0.3725, allocations: 67.47 kB / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.3725, allocations: 0 / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.3727, allocations: 21.78 kB / 0.5252 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.3728, allocations: 29.89 kB / 0.5252 GB, free: 15.51 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.0001514/0.3729, allocations: 116.8 kB / 0.5254 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.373, allocations: 7.453 kB / 0.5254 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.3744, allocations: 0.5525 MB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.3744, allocations: 1.375 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3744, allocations: 1.312 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3744, allocations: 3.984 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002241/0.3766, allocations: 0.8793 MB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3767, allocations: 1.469 kB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002848/0.377, allocations: 66.83 kB / 0.5268 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.377, allocations: 6.469 kB / 0.5268 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.377, allocations: 15.11 kB / 0.5269 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.511e-06/0.377, allocations: 2.344 kB / 0.5269 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.377, allocations: 1.344 kB / 0.5269 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.3781, allocations: 466.3 kB / 0.5273 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.366e-05/0.3781, allocations: 89.77 kB / 0.5274 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.981e-05/0.3782, allocations: 6.562 kB / 0.5274 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3784, allocations: 19.64 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.3785, allocations: 14.05 kB / 0.5274 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.3785, allocations: 17.64 kB / 0.5274 GB, free: 13.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.355e-05/0.3786, allocations: 83.5 kB / 0.5275 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3786, allocations: 0 / 0.5275 GB, free: 13.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00117/0.3797, allocations: 321.4 kB / 0.5278 GB, free: 13.83 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.003052/0.3828, allocations: 1.131 MB / 0.5289 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008804/0.3837, allocations: 331.8 kB / 0.5293 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/0.3837, allocations: 1.188 kB / 0.5293 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003719/0.3841, allocations: 150.4 kB / 0.5294 GB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.3844, allocations: 17.33 kB / 0.5294 GB, free: 12.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3865, allocations: 0.511 MB / 0.5299 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.3869, allocations: 0.6974 MB / 0.5306 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003037/0.3872, allocations: 95.5 kB / 0.5307 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.3874, allocations: 55.97 kB / 0.5307 GB, free: 11.56 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3874, allocations: 0 / 0.5307 GB, free: 11.56 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04593/0.4333, allocations: 18.97 MB / 0.5493 GB, free: 12.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.863/8.296, allocations: 5.016 kB / 0.5493 GB, free: 12.15 MB / 414.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches