Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001773/0.001773, allocations: 120 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 230.4 MB / 254.7 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2146/0.2146, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002111, allocations: 71.89 kB / 0.4916 GB, free: 7.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1198, allocations: 66.05 MB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001809/0.1217, allocations: 0.5263 MB / 0.5567 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007148/0.1224, allocations: 371.3 kB / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.124e-05/0.1224, allocations: 4 kB / 0.557 GB, free: 4.645 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.972e-05/0.1224, allocations: 3.938 kB / 0.557 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.699e-05/0.1224, allocations: 0 / 0.557 GB, free: 4.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.1229, allocations: 111.6 kB / 0.5571 GB, free: 4.531 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.159e-05/0.1229, allocations: 27.86 kB / 0.5572 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.947e-05/0.123, allocations: 8 kB / 0.5572 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.441e-05/0.123, allocations: 15.92 kB / 0.5572 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.451e-05/0.1231, allocations: 19.91 kB / 0.5572 GB, free: 4.461 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.1231, allocations: 8 kB / 0.5572 GB, free: 4.453 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002309/0.1233, allocations: 111.9 kB / 0.5573 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.474e-05/0.1233, allocations: 3.984 kB / 0.5573 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.1233, allocations: 19.86 kB / 0.5573 GB, free: 4.32 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.1235, allocations: 95.69 kB / 0.5574 GB, free: 4.227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1236, allocations: 0 / 0.5574 GB, free: 4.227 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1236, allocations: 0 / 0.5574 GB, free: 4.227 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1236, allocations: 0 / 0.5574 GB, free: 4.227 MB / 414.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.000483/0.124, allocations: 367.1 kB / 0.5578 GB, free: 3.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1241, allocations: 12.03 kB / 0.5578 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.837e-05/0.1241, allocations: 4.188 kB / 0.5578 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.151e-05/0.1241, allocations: 34.75 kB / 0.5578 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.1242, allocations: 0.9375 kB / 0.5578 GB, free: 3.758 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.1243, allocations: 180.3 kB / 0.558 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1243, allocations: 4.375 kB / 0.558 GB, free: 3.539 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.1243, allocations: 8.312 kB / 0.558 GB, free: 3.531 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.1245, allocations: 54 kB / 0.5581 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.1245, allocations: 3.984 kB / 0.5581 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1245, allocations: 8 kB / 0.5581 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1245, allocations: 0 / 0.5581 GB, free: 3.461 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.067e-05/0.1246, allocations: 27.92 kB / 0.5581 GB, free: 3.434 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001932/0.1248, allocations: 173.6 kB / 0.5583 GB, free: 3.215 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.125, allocations: 50.55 kB / 0.5583 GB, free: 3.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.054e-05/0.125, allocations: 28.84 kB / 0.5583 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002595/0.1253, allocations: 105.1 kB / 0.5584 GB, free: 3.004 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.1253, allocations: 38.72 kB / 0.5585 GB, free: 2.957 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.1253, allocations: 0 / 0.5585 GB, free: 2.957 MB / 414.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.0403/0.1656, allocations: 2.572 MB / 0.561 GB, free: 360 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.1657, allocations: 59.39 kB / 0.561 GB, free: 288 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.1658, allocations: 97.86 kB / 0.5611 GB, free: 180 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.1658, allocations: 33.7 kB / 0.5612 GB, free: 140 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.1659, allocations: 83.89 kB / 0.5613 GB, free: 52 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.166, allocations: 75.55 kB / 0.5613 GB, free: 15.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.1661, allocations: 53.69 kB / 0.5614 GB, free: 15.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1662, allocations: 322.6 kB / 0.5617 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004114/0.1666, allocations: 171.9 kB / 0.5618 GB, free: 15.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003934/0.167, allocations: 179.9 kB / 0.562 GB, free: 15.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.1681, allocations: 415.1 kB / 0.5624 GB, free: 14.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1681, allocations: 0 / 0.5624 GB, free: 14.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001121/0.1692, allocations: 469.8 kB / 0.5629 GB, free: 14.38 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1693, allocations: 4 kB / 0.5629 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.1693, allocations: 0 / 0.5629 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.1693, allocations: 4.25 kB / 0.5629 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003838/0.1697, allocations: 63.94 kB / 0.5629 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.827e-06/0.1697, allocations: 15.94 kB / 0.5629 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.1699, allocations: 15.98 kB / 0.563 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.17, allocations: 19.92 kB / 0.563 GB, free: 14.26 MB / 430.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.00014/0.1701, allocations: 121.8 kB / 0.5631 GB, free: 14.13 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.441e-05/0.1701, allocations: 7.953 kB / 0.5631 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.1715, allocations: 0.5408 MB / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.1715, allocations: 0 / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1715, allocations: 0 / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.1715, allocations: 3.938 kB / 0.5636 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/0.1737, allocations: 0.8815 MB / 0.5645 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1737, allocations: 0 / 0.5645 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003093/0.174, allocations: 67.94 kB / 0.5646 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.174, allocations: 4 kB / 0.5646 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.174, allocations: 15.98 kB / 0.5646 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.174, allocations: 7.938 kB / 0.5646 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.174, allocations: 192 / 0.5646 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/0.175, allocations: 480 kB / 0.565 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.1751, allocations: 85.06 kB / 0.5651 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.1751, allocations: 4 kB / 0.5651 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1753, allocations: 23.91 kB / 0.5652 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.1753, allocations: 23.92 kB / 0.5652 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.979e-05/0.1754, allocations: 23.92 kB / 0.5652 GB, free: 11.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.471e-05/0.1754, allocations: 79.28 kB / 0.5653 GB, free: 11.76 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1754, allocations: 0 / 0.5653 GB, free: 11.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008912/0.1763, allocations: 319.6 kB / 0.5656 GB, free: 11.45 MB / 430.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.002669/0.179, allocations: 1.111 MB / 0.5667 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008735/0.1799, allocations: 323.7 kB / 0.567 GB, free: 9.977 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1799, allocations: 4 kB / 0.567 GB, free: 9.973 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.1802, allocations: 139.8 kB / 0.5671 GB, free: 9.836 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.1805, allocations: 11.94 kB / 0.5671 GB, free: 9.824 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.1823, allocations: 0.4998 MB / 0.5676 GB, free: 9.266 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.1827, allocations: 0.6965 MB / 0.5683 GB, free: 8.539 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002688/0.1829, allocations: 97.06 kB / 0.5684 GB, free: 8.441 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.1831, allocations: 63.39 kB / 0.5684 GB, free: 8.379 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1831, allocations: 0 / 0.5684 GB, free: 8.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03816/0.2213, allocations: 19.02 MB / 0.587 GB, free: 5.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.824/8.046, allocations: 0 / 0.587 GB, free: 5.465 MB / 446.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 11.21989632298937]