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.001579/0.001579, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001678/0.001678, allocations: 194 kB / 18.12 MB, free: 5.383 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.415/1.415, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2047/0.2047, allocations: 44.18 MB / 336.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 70.02 kB / 407.8 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.1009, allocations: 60.82 MB / 468.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001842/0.1028, allocations: 0.5994 MB / 469.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006882/0.1035, allocations: 393.2 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.784e-05/0.1035, allocations: 3.938 kB / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.609e-05/0.1036, allocations: 0 / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.726e-05/0.1036, allocations: 0 / 469.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003238/0.1039, allocations: 75.81 kB / 469.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.617e-05/0.104, allocations: 23.92 kB / 469.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.157e-05/0.104, allocations: 7.984 kB / 469.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.262e-05/0.1041, allocations: 15.92 kB / 469.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.111e-05/0.1041, allocations: 15.92 kB / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.1041, allocations: 0 / 469.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.1044, allocations: 123.9 kB / 469.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.78e-05/0.1044, allocations: 7.938 kB / 469.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.1044, allocations: 11.94 kB / 469.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001984/0.1046, allocations: 99.73 kB / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1047, allocations: 0 / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1047, allocations: 4 kB / 470 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1047, allocations: 0 / 470 MB, free: 13.39 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.0004989/0.1052, allocations: 363.7 kB / 470.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1052, allocations: 8.031 kB / 470.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.1053, allocations: 38.73 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.1053, allocations: 8.844 kB / 470.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.1055, allocations: 164.3 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.243e-05/0.1055, allocations: 4.375 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.1055, allocations: 12.31 kB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.1057, allocations: 54.23 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.1057, allocations: 3.938 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1057, allocations: 4 kB / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1057, allocations: 0 / 470.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.13e-05/0.1058, allocations: 23.98 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002128/0.106, allocations: 177.5 kB / 470.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.1063, allocations: 54.56 kB / 470.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.251e-05/0.1063, allocations: 32.84 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002666/0.1066, allocations: 101.1 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/0.1066, allocations: 34.55 kB / 471.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.1066, allocations: 0 / 471.1 MB, free: 12.13 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.0437/0.1504, allocations: 2.575 MB / 473.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.1504, allocations: 51.41 kB / 473.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.512e-05/0.1505, allocations: 105.9 kB / 473.8 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.1506, allocations: 33.64 kB / 473.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.255e-05/0.1506, allocations: 84.12 kB / 473.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.008e-05/0.1507, allocations: 59.11 kB / 474 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.1508, allocations: 57.69 kB / 474 MB, free: 9.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1509, allocations: 326.8 kB / 474.3 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003905/0.1513, allocations: 171.9 kB / 474.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.1517, allocations: 182.2 kB / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.1527, allocations: 417.2 kB / 475.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1528, allocations: 0 / 475.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001045/0.1538, allocations: 455.9 kB / 475.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.1538, allocations: 8 kB / 475.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1539, allocations: 0 / 475.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1539, allocations: 7.938 kB / 475.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003951/0.1543, allocations: 75.88 kB / 475.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1543, allocations: 0 / 475.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.1545, allocations: 15.98 kB / 475.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1546, allocations: 15.98 kB / 475.7 MB, free: 7.441 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.0001272/0.1547, allocations: 125.7 kB / 475.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.442e-05/0.1548, allocations: 11.89 kB / 475.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.1565, allocations: 0.5368 MB / 476.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.1565, allocations: 4 kB / 476.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1565, allocations: 256 / 476.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1565, allocations: 0 / 476.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00273/0.1592, allocations: 0.8968 MB / 477.2 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1593, allocations: 4 kB / 477.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003037/0.1596, allocations: 72.06 kB / 477.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.1596, allocations: 4 kB / 477.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.1596, allocations: 19.98 kB / 477.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1596, allocations: 0 / 477.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.1597, allocations: 4 kB / 477.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009336/0.1606, allocations: 464.2 kB / 477.8 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.313e-05/0.1606, allocations: 85.02 kB / 477.9 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.1607, allocations: 12 kB / 477.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.161, allocations: 19.97 kB / 477.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.161, allocations: 19.92 kB / 477.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.161, allocations: 15.98 kB / 477.9 MB, free: 5.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.268e-05/0.1611, allocations: 83.28 kB / 478 MB, free: 4.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1611, allocations: 0 / 478 MB, free: 4.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008749/0.162, allocations: 319.9 kB / 478.3 MB, free: 4.633 MB / 350.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.002478/0.1645, allocations: 1.111 MB / 479.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.1653, allocations: 343.7 kB / 479.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1653, allocations: 0 / 479.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.1656, allocations: 150.8 kB / 479.9 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.1659, allocations: 16 kB / 479.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.1676, allocations: 0.5211 MB / 480.5 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.1679, allocations: 0.7006 MB / 481.2 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003636/0.1682, allocations: 92.89 kB / 481.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.1685, allocations: 59.39 kB / 481.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1685, allocations: 0 / 481.3 MB, free: 1.516 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03067/0.1991, allocations: 18.63 MB / 499.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.1994, allocations: 211.2 kB / 0.4884 GB, free: 14.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.157, allocations: 4.062 kB / 0.4884 GB, free: 14.78 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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