Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 112.5 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 201.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.401/1.401, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2375/0.2375, allocations: 46.95 MB / 361.7 MB, free: 4.285 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 67.89 kB / 0.4969 GB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3182, allocations: 66.04 MB / 0.5614 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00177/0.32, allocations: 0.5345 MB / 0.5619 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007687/0.3207, allocations: 374.7 kB / 0.5623 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.628e-05/0.3208, allocations: 0 / 0.5623 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.3208, allocations: 7.875 kB / 0.5623 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.337e-05/0.3208, allocations: 0 / 0.5623 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004181/0.3212, allocations: 107.5 kB / 0.5624 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.4e-05/0.3213, allocations: 31.84 kB / 0.5624 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.029e-05/0.3214, allocations: 4 kB / 0.5624 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.519e-05/0.3214, allocations: 15.92 kB / 0.5625 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.743e-05/0.3215, allocations: 19.92 kB / 0.5625 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/0.3215, allocations: 4 kB / 0.5625 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/0.3217, allocations: 115.9 kB / 0.5626 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.3217, allocations: 11.98 kB / 0.5626 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.62e-05/0.3218, allocations: 11.88 kB / 0.5626 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.322, allocations: 97.7 kB / 0.5627 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.322, allocations: 0 / 0.5627 GB, free: 3.168 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.322, allocations: 0 / 0.5627 GB, free: 3.168 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.322, allocations: 0 / 0.5627 GB, free: 3.168 MB / 398.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.0004861/0.3225, allocations: 298 kB / 0.563 GB, free: 2.844 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3225, allocations: 8.031 kB / 0.563 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.681e-05/0.3225, allocations: 192 / 0.563 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.664e-05/0.3226, allocations: 38.75 kB / 0.563 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.3226, allocations: 0.9375 kB / 0.563 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.3227, allocations: 122.4 kB / 0.5632 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.3227, allocations: 384 / 0.5632 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.159e-05/0.3227, allocations: 4.375 kB / 0.5632 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.3229, allocations: 54 kB / 0.5632 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3229, allocations: 11.94 kB / 0.5632 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.3229, allocations: 4 kB / 0.5632 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.3229, allocations: 0 / 0.5632 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.791e-05/0.323, allocations: 31.91 kB / 0.5633 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001896/0.3232, allocations: 136.8 kB / 0.5634 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.3234, allocations: 54.55 kB / 0.5634 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.703e-05/0.3234, allocations: 16.86 kB / 0.5635 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002332/0.3237, allocations: 35.95 kB / 0.5635 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/0.3237, allocations: 42.72 kB / 0.5635 GB, free: 2.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.3237, allocations: 0 / 0.5635 GB, free: 2.191 MB / 398.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.04125/0.365, allocations: 2.569 MB / 0.566 GB, free: 15.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.597e-05/0.365, allocations: 51.41 kB / 0.5661 GB, free: 15.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.3651, allocations: 105.8 kB / 0.5662 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.3652, allocations: 25.7 kB / 0.5662 GB, free: 15.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.3652, allocations: 87.89 kB / 0.5663 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.572e-05/0.3653, allocations: 71.42 kB / 0.5664 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.3655, allocations: 57.67 kB / 0.5664 GB, free: 15.15 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3656, allocations: 326.7 kB / 0.5667 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004141/0.366, allocations: 175.9 kB / 0.5669 GB, free: 14.65 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.3664, allocations: 177.8 kB / 0.5671 GB, free: 14.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.3675, allocations: 415.4 kB / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3675, allocations: 0 / 0.5675 GB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001163/0.3687, allocations: 465.3 kB / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3687, allocations: 8 kB / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3687, allocations: 0 / 0.5679 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3687, allocations: 3.938 kB / 0.5679 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.3691, allocations: 71.94 kB / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.3691, allocations: 0 / 0.568 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.3693, allocations: 23.97 kB / 0.568 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-05/0.3694, allocations: 15.98 kB / 0.568 GB, free: 13.49 MB / 414.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.0001613/0.3695, allocations: 121.7 kB / 0.5681 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.3696, allocations: 7.953 kB / 0.5681 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001376/0.371, allocations: 0.5369 MB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/0.371, allocations: 7.984 kB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.371, allocations: 3.984 kB / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.371, allocations: 0 / 0.5687 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.3734, allocations: 0.8568 MB / 0.5695 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3734, allocations: 4.25 kB / 0.5695 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003051/0.3737, allocations: 67.94 kB / 0.5696 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/0.3737, allocations: 8 kB / 0.5696 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.3737, allocations: 15.98 kB / 0.5696 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3738, allocations: 192 / 0.5696 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.281e-06/0.3738, allocations: 11.94 kB / 0.5696 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009905/0.3747, allocations: 458.8 kB / 0.5701 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/0.3748, allocations: 11.95 kB / 0.5701 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.3748, allocations: 4 kB / 0.5701 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.375, allocations: 23.97 kB / 0.5701 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.826e-05/0.375, allocations: 15.92 kB / 0.5701 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.3751, allocations: 23.98 kB / 0.5701 GB, free: 11.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.302e-05/0.3751, allocations: 91.14 kB / 0.5702 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3751, allocations: 0 / 0.5702 GB, free: 11.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009709/0.3761, allocations: 311.6 kB / 0.5705 GB, free: 10.81 MB / 414.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.002688/0.3788, allocations: 1.115 MB / 0.5716 GB, free: 9.652 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009325/0.3797, allocations: 332.1 kB / 0.5719 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3797, allocations: 0 / 0.5719 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.3801, allocations: 139.8 kB / 0.5721 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.3804, allocations: 14.92 kB / 0.5721 GB, free: 9.184 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.3823, allocations: 0.5074 MB / 0.5726 GB, free: 8.617 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.3827, allocations: 0.6926 MB / 0.5732 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002868/0.383, allocations: 92.97 kB / 0.5733 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.3832, allocations: 55.41 kB / 0.5734 GB, free: 7.746 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3832, allocations: 0 / 0.5734 GB, free: 7.746 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04572/0.4289, allocations: 19.27 MB / 0.5922 GB, free: 4.629 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.48, allocations: 10.67 kB / 0.5922 GB, free: 4.625 MB / 430.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.473477284016553]