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.001689/0.001689, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002151/0.002151, allocations: 209.6 kB / 23.73 MB, free: 4.387 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2221/0.2221, allocations: 46.96 MB / 360.9 MB, free: 4.016 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 71.91 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3163, allocations: 66.03 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001766/0.3181, allocations: 0.5305 MB / 0.5611 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007394/0.3188, allocations: 326.8 kB / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.283e-05/0.3189, allocations: 0 / 0.5614 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.3189, allocations: 3.938 kB / 0.5614 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.24e-05/0.3189, allocations: 8 kB / 0.5614 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004193/0.3194, allocations: 111.4 kB / 0.5615 GB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.132e-05/0.3194, allocations: 27.86 kB / 0.5616 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.876e-05/0.3195, allocations: 7.938 kB / 0.5616 GB, free: 3.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.419e-05/0.3195, allocations: 11.98 kB / 0.5616 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.739e-05/0.3195, allocations: 19.84 kB / 0.5616 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.3196, allocations: 4 kB / 0.5616 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.3198, allocations: 111.9 kB / 0.5617 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.931e-05/0.3198, allocations: 15.97 kB / 0.5617 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.3198, allocations: 7.938 kB / 0.5617 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.32, allocations: 97.66 kB / 0.5618 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.32, allocations: 0 / 0.5618 GB, free: 2.945 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.32, allocations: 0 / 0.5618 GB, free: 2.945 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.902e-06/0.32, allocations: 0 / 0.5618 GB, free: 2.945 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.0004875/0.3205, allocations: 294 kB / 0.5621 GB, free: 2.625 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3206, allocations: 12.03 kB / 0.5621 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.3206, allocations: 30.75 kB / 0.5621 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.716e-05/0.3206, allocations: 4.938 kB / 0.5622 GB, free: 2.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.3208, allocations: 114.4 kB / 0.5623 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3208, allocations: 12.38 kB / 0.5623 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.3208, allocations: 4.359 kB / 0.5623 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.3209, allocations: 54.25 kB / 0.5623 GB, free: 2.359 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.3209, allocations: 3.938 kB / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.321, allocations: 0 / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.321, allocations: 0 / 0.5623 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.327e-05/0.321, allocations: 31.92 kB / 0.5624 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002052/0.3212, allocations: 140.7 kB / 0.5625 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002191/0.3215, allocations: 50.55 kB / 0.5625 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.276e-05/0.3215, allocations: 24.86 kB / 0.5626 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002306/0.3217, allocations: 31.95 kB / 0.5626 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.3218, allocations: 34.78 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.173e-06/0.3218, allocations: 0 / 0.5626 GB, free: 1.984 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.04106/0.3628, allocations: 2.572 MB / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3629, allocations: 55.41 kB / 0.5652 GB, free: 15.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.363, allocations: 105.8 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.363, allocations: 29.7 kB / 0.5653 GB, free: 15.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.3631, allocations: 87.88 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.545e-05/0.3632, allocations: 67.42 kB / 0.5655 GB, free: 15 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.3633, allocations: 61.69 kB / 0.5655 GB, free: 14.94 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3635, allocations: 322.8 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003951/0.3638, allocations: 171.9 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004003/0.3642, allocations: 178.6 kB / 0.5662 GB, free: 14.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001061/0.3653, allocations: 416.7 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3653, allocations: 0 / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001086/0.3664, allocations: 463 kB / 0.567 GB, free: 13.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3664, allocations: 8 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3664, allocations: 3.984 kB / 0.567 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.3664, allocations: 4.453 kB / 0.567 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/0.3668, allocations: 67.95 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3668, allocations: 3.984 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001991/0.367, allocations: 15.98 kB / 0.5671 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.3671, allocations: 19.98 kB / 0.5671 GB, free: 13.29 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.0001475/0.3672, allocations: 129.7 kB / 0.5673 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.3673, allocations: 7.953 kB / 0.5673 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.3686, allocations: 0.5368 MB / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.3686, allocations: 4 kB / 0.5678 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3686, allocations: 3.938 kB / 0.5678 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3686, allocations: 4 kB / 0.5678 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.3708, allocations: 0.8219 MB / 0.5686 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3708, allocations: 0 / 0.5686 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002851/0.3711, allocations: 67.94 kB / 0.5687 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3711, allocations: 0 / 0.5687 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.3711, allocations: 24.17 kB / 0.5687 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/0.3712, allocations: 8.188 kB / 0.5687 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3712, allocations: 0 / 0.5687 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009662/0.3721, allocations: 463.1 kB / 0.5691 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.763e-05/0.3722, allocations: 11.95 kB / 0.5691 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.3722, allocations: 8 kB / 0.5692 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.3724, allocations: 19.97 kB / 0.5692 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.817e-05/0.3724, allocations: 19.92 kB / 0.5692 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.3724, allocations: 15.98 kB / 0.5692 GB, free: 11.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.3725, allocations: 83.28 kB / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3725, allocations: 0 / 0.5693 GB, free: 10.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008945/0.3734, allocations: 323.5 kB / 0.5696 GB, free: 10.64 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.002493/0.3759, allocations: 1.115 MB / 0.5707 GB, free: 9.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008323/0.3767, allocations: 326.4 kB / 0.571 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3767, allocations: 4 kB / 0.571 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000343/0.3771, allocations: 131.8 kB / 0.5711 GB, free: 9.027 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3774, allocations: 12 kB / 0.5711 GB, free: 9.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.3791, allocations: 0.5113 MB / 0.5716 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.75e-05/0.3792, allocations: 83.56 kB / 0.5717 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.3795, allocations: 88.98 kB / 0.5718 GB, free: 8.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.3797, allocations: 59.39 kB / 0.5719 GB, free: 8.191 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3797, allocations: 0 / 0.5719 GB, free: 8.191 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05137/0.4311, allocations: 19.76 MB / 0.5912 GB, free: 4.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.24, allocations: 2.75 kB / 0.5912 GB, free: 4.562 MB / 430.1 MB " [Timeout remaining time 649] (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.268671298399568]