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.001492/0.001492, allocations: 112.7 kB / 17.78 MB, free: 5.281 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.001672/0.001672, allocations: 180.1 kB / 18.71 MB, free: 4.363 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.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.194/0.194, allocations: 44.2 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 71.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3273, allocations: 60.82 MB / 0.5184 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001566/0.3289, allocations: 0.5404 MB / 0.5189 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005912/0.3295, allocations: 366.8 kB / 0.5193 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.644e-05/0.3296, allocations: 3.938 kB / 0.5193 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/0.3296, allocations: 3.938 kB / 0.5193 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.744e-05/0.3296, allocations: 4 kB / 0.5193 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003762/0.33, allocations: 105.4 kB / 0.5194 GB, free: 2.645 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.909e-05/0.3301, allocations: 27.72 kB / 0.5194 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.477e-05/0.3301, allocations: 3.844 kB / 0.5194 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.177e-05/0.3302, allocations: 10.69 kB / 0.5194 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.436e-05/0.3302, allocations: 21.52 kB / 0.5195 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.3302, allocations: 1.469 kB / 0.5195 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.3304, allocations: 117.9 kB / 0.5196 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.539e-05/0.3305, allocations: 14.7 kB / 0.5196 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.304e-05/0.3305, allocations: 17.22 kB / 0.5196 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.3307, allocations: 94.75 kB / 0.5197 GB, free: 2.539 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3307, allocations: 0 / 0.5197 GB, free: 2.539 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3307, allocations: 1.406 kB / 0.5197 GB, free: 2.539 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.3307, allocations: 0 / 0.5197 GB, free: 2.539 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.0003438/0.331, allocations: 364.8 kB / 0.52 GB, free: 2.156 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3311, allocations: 11.12 kB / 0.5201 GB, free: 2.156 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.602e-05/0.3311, allocations: 32.8 kB / 0.5201 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.3312, allocations: 14.95 kB / 0.5201 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.396e-05/0.3312, allocations: 171.4 kB / 0.5203 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3312, allocations: 3.25 kB / 0.5203 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.3313, allocations: 2.375 kB / 0.5203 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.3314, allocations: 54.03 kB / 0.5203 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.3314, allocations: 8.984 kB / 0.5203 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.3314, allocations: 0 / 0.5203 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.3314, allocations: 1.531 kB / 0.5203 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.7e-05/0.3315, allocations: 33.14 kB / 0.5204 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001383/0.3317, allocations: 170.3 kB / 0.5205 GB, free: 1.645 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.3319, allocations: 53.64 kB / 0.5206 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.501e-05/0.3319, allocations: 24.28 kB / 0.5206 GB, free: 1.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000246/0.3322, allocations: 112.3 kB / 0.5207 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.3322, allocations: 40.67 kB / 0.5207 GB, free: 1.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.193e-06/0.3322, allocations: 4 kB / 0.5208 GB, free: 1.449 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.04151/0.3737, allocations: 2.569 MB / 0.5233 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.3738, allocations: 53.22 kB / 0.5233 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.16e-05/0.3739, allocations: 103.7 kB / 0.5234 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.3739, allocations: 25.7 kB / 0.5234 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.285e-05/0.3739, allocations: 86.48 kB / 0.5235 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.374, allocations: 68.41 kB / 0.5236 GB, free: 448 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3741, allocations: 53.45 kB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.722e-05/0.3742, allocations: 328.8 kB / 0.5239 GB, free: 92 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.3745, allocations: 172.6 kB / 0.5241 GB, free: 28 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003825/0.3749, allocations: 176 kB / 0.5243 GB, free: 15.96 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.376, allocations: 418.8 kB / 0.5247 GB, free: 15.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.376, allocations: 0 / 0.5247 GB, free: 15.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001065/0.3771, allocations: 466.8 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3771, allocations: 5.844 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3771, allocations: 0 / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3771, allocations: 5.344 kB / 0.5251 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.3775, allocations: 67.47 kB / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3775, allocations: 0 / 0.5252 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.3778, allocations: 21.84 kB / 0.5252 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.3778, allocations: 17.31 kB / 0.5252 GB, free: 15.52 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.0001274/0.3779, allocations: 132.7 kB / 0.5254 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.32e-05/0.378, allocations: 8.359 kB / 0.5254 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/0.3793, allocations: 0.5344 MB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.3793, allocations: 2.75 kB / 0.5259 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3793, allocations: 4 kB / 0.5259 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.3794, allocations: 13.34 kB / 0.5259 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/0.3815, allocations: 0.8837 MB / 0.5268 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3815, allocations: 5.75 kB / 0.5268 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.3818, allocations: 61.7 kB / 0.5268 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3819, allocations: 2.562 kB / 0.5268 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.3819, allocations: 19.02 kB / 0.5269 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.3819, allocations: 1.75 kB / 0.5269 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3819, allocations: 6.656 kB / 0.5269 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009506/0.3829, allocations: 464.4 kB / 0.5273 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.3829, allocations: 85.31 kB / 0.5274 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.383, allocations: 7.172 kB / 0.5274 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3832, allocations: 19.02 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.3832, allocations: 15.36 kB / 0.5274 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.3832, allocations: 20.7 kB / 0.5275 GB, free: 13.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.3833, allocations: 83.56 kB / 0.5275 GB, free: 13.87 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3833, allocations: 0 / 0.5275 GB, free: 13.87 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001141/0.3844, allocations: 324.6 kB / 0.5278 GB, free: 13.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.002644/0.3871, allocations: 1.109 MB / 0.5289 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00083/0.3879, allocations: 341.3 kB / 0.5293 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.388, allocations: 0 / 0.5293 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.3883, allocations: 147.3 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.0002836/0.3886, allocations: 20.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.001731/0.3903, allocations: 0.505 MB / 0.5299 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.3906, allocations: 0.696 MB / 0.5306 GB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002855/0.3909, allocations: 95.09 kB / 0.5307 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.3911, allocations: 54.81 kB / 0.5307 GB, free: 11.57 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3911, allocations: 0 / 0.5307 GB, free: 11.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03675/0.4279, allocations: 18.97 MB / 0.5493 GB, free: 12.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/7.905, allocations: 7.594 kB / 0.5493 GB, free: 12.16 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