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.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.001839/0.001839, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002248/0.002248, allocations: 216.9 kB / 23.73 MB, free: 4.16 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.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2249/0.2249, allocations: 44.93 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 180] 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.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_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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 67.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3081, allocations: 65.48 MB / 0.557 GB, free: 7.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001693/0.3098, allocations: 0.5267 MB / 0.5575 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007428/0.3105, allocations: 341 kB / 0.5578 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.3105, allocations: 0 / 0.5578 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.627e-05/0.3105, allocations: 0 / 0.5578 GB, free: 6.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.05e-05/0.3106, allocations: 5 kB / 0.5578 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004444/0.311, allocations: 111.7 kB / 0.5579 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.875e-05/0.3111, allocations: 23.92 kB / 0.5579 GB, free: 6.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.3111, allocations: 7.984 kB / 0.5579 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.449e-05/0.3112, allocations: 11.94 kB / 0.5579 GB, free: 6.379 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.3112, allocations: 19.91 kB / 0.558 GB, free: 6.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.3112, allocations: 11.94 kB / 0.558 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.3115, allocations: 103.9 kB / 0.5581 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.942e-05/0.3115, allocations: 11.98 kB / 0.5581 GB, free: 6.234 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.261e-05/0.3115, allocations: 11.92 kB / 0.5581 GB, free: 6.223 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.3117, allocations: 101.6 kB / 0.5582 GB, free: 6.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3117, allocations: 0 / 0.5582 GB, free: 6.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3117, allocations: 0 / 0.5582 GB, free: 6.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3117, allocations: 0 / 0.5582 GB, free: 6.125 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.0004572/0.3122, allocations: 294 kB / 0.5585 GB, free: 5.805 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3122, allocations: 8.031 kB / 0.5585 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.3123, allocations: 38.75 kB / 0.5585 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.349e-05/0.3123, allocations: 0.9375 kB / 0.5585 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3124, allocations: 126.4 kB / 0.5586 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.3124, allocations: 384 / 0.5586 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.3124, allocations: 4.375 kB / 0.5587 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.3126, allocations: 54.19 kB / 0.5587 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.3126, allocations: 7.938 kB / 0.5587 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3126, allocations: 3.984 kB / 0.5587 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.3126, allocations: 0 / 0.5587 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.018e-05/0.3127, allocations: 27.98 kB / 0.5587 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.3128, allocations: 140.7 kB / 0.5589 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002174/0.3131, allocations: 58.59 kB / 0.5589 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.887e-05/0.3131, allocations: 24.83 kB / 0.559 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002272/0.3133, allocations: 27.97 kB / 0.559 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.3134, allocations: 34.55 kB / 0.559 GB, free: 5.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.173e-06/0.3134, allocations: 0 / 0.559 GB, free: 5.156 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.04197/0.3553, allocations: 2.568 MB / 0.5615 GB, free: 2.551 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.3554, allocations: 59.41 kB / 0.5616 GB, free: 2.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.214e-05/0.3555, allocations: 93.86 kB / 0.5617 GB, free: 2.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/0.3555, allocations: 37.7 kB / 0.5617 GB, free: 2.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.3556, allocations: 83.89 kB / 0.5618 GB, free: 2.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.3557, allocations: 71.41 kB / 0.5619 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3558, allocations: 57.69 kB / 0.5619 GB, free: 2.117 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.356, allocations: 326.8 kB / 0.5622 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.3564, allocations: 163.9 kB / 0.5624 GB, free: 1.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004048/0.3568, allocations: 179.9 kB / 0.5625 GB, free: 1.453 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.3579, allocations: 423 kB / 0.5629 GB, free: 1.039 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.3579, allocations: 0 / 0.5629 GB, free: 1.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001103/0.359, allocations: 463.3 kB / 0.5634 GB, free: 0.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.359, allocations: 4 kB / 0.5634 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.359, allocations: 4 kB / 0.5634 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.359, allocations: 0 / 0.5634 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003981/0.3594, allocations: 76.12 kB / 0.5635 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.3594, allocations: 0 / 0.5635 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.3596, allocations: 20.45 kB / 0.5635 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/0.3597, allocations: 27.92 kB / 0.5635 GB, free: 464 kB / 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.0001296/0.3598, allocations: 117.8 kB / 0.5636 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.27e-05/0.3599, allocations: 7.953 kB / 0.5636 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.3612, allocations: 0.5485 MB / 0.5642 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.3612, allocations: 7.938 kB / 0.5642 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3613, allocations: 0 / 0.5642 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3613, allocations: 0 / 0.5642 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.3635, allocations: 0.8064 MB / 0.565 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3635, allocations: 4 kB / 0.565 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.3638, allocations: 76.06 kB / 0.565 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3638, allocations: 4 kB / 0.565 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.3639, allocations: 15.98 kB / 0.5651 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3639, allocations: 0 / 0.5651 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.3639, allocations: 4 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.3649, allocations: 469 kB / 0.5655 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.828e-05/0.3649, allocations: 7.953 kB / 0.5655 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.3649, allocations: 8 kB / 0.5655 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3652, allocations: 23.97 kB / 0.5656 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.088e-05/0.3652, allocations: 7.984 kB / 0.5656 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.3652, allocations: 19.98 kB / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.069e-05/0.3653, allocations: 83.28 kB / 0.5657 GB, free: 14.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3653, allocations: 0 / 0.5657 GB, free: 14.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009196/0.3662, allocations: 319.5 kB / 0.566 GB, free: 13.82 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.00264/0.3688, allocations: 1.121 MB / 0.5671 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008977/0.3697, allocations: 323.7 kB / 0.5674 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3698, allocations: 0 / 0.5674 GB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004065/0.3702, allocations: 144.1 kB / 0.5675 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.3704, allocations: 15.94 kB / 0.5675 GB, free: 12.19 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001841/0.3723, allocations: 0.5032 MB / 0.568 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.776e-05/0.3724, allocations: 79.56 kB / 0.5681 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003364/0.3727, allocations: 97.16 kB / 0.5682 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.3729, allocations: 59.41 kB / 0.5682 GB, free: 11.37 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3729, allocations: 0 / 0.5682 GB, free: 11.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0511/0.424, allocations: 19.76 MB / 0.5875 GB, free: 7.738 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.48, allocations: 3.984 kB / 0.5875 GB, free: 7.734 MB / 430.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0004 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.439199029933661]