Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.00142/0.00142, allocations: 120.2 kB / 18.5 MB, free: 4.535 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.001377/0.001377, allocations: 222.2 kB / 21.46 MB, free: 1.582 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.463/1.463, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.2184/0.2184, allocations: 46.92 MB / 357.7 MB, free: 10.16 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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 79.88 kB / 0.4916 GB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1298, allocations: 66.05 MB / 0.5561 GB, free: 5.508 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002025/0.1318, allocations: 0.5256 MB / 0.5567 GB, free: 4.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009806/0.1328, allocations: 411.4 kB / 0.5571 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.177e-05/0.1328, allocations: 4 kB / 0.5571 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.1328, allocations: 3.938 kB / 0.5571 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.489e-05/0.1329, allocations: 7.938 kB / 0.5571 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.1334, allocations: 135.5 kB / 0.5572 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.388e-05/0.1335, allocations: 27.91 kB / 0.5572 GB, free: 4.395 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.1336, allocations: 0 / 0.5572 GB, free: 4.395 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.027e-05/0.1336, allocations: 11.94 kB / 0.5572 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.1337, allocations: 19.91 kB / 0.5573 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.1337, allocations: 4 kB / 0.5573 GB, free: 4.359 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003539/0.134, allocations: 167.8 kB / 0.5574 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.385e-05/0.134, allocations: 7.984 kB / 0.5574 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.203e-05/0.1341, allocations: 15.88 kB / 0.5574 GB, free: 4.172 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.1343, allocations: 123.6 kB / 0.5576 GB, free: 4.051 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.1343, allocations: 0 / 0.5576 GB, free: 4.051 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1343, allocations: 0 / 0.5576 GB, free: 4.051 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1343, allocations: 0 / 0.5576 GB, free: 4.051 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.0005497/0.1349, allocations: 371 kB / 0.5579 GB, free: 3.641 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.1349, allocations: 12.03 kB / 0.5579 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.397e-05/0.135, allocations: 4.125 kB / 0.5579 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.761e-05/0.135, allocations: 42.69 kB / 0.558 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.886e-05/0.135, allocations: 0.9375 kB / 0.558 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.1352, allocations: 176.3 kB / 0.5581 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.575e-06/0.1352, allocations: 384 / 0.5581 GB, free: 3.363 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.1352, allocations: 12.36 kB / 0.5582 GB, free: 3.352 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.1354, allocations: 53.81 kB / 0.5582 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1354, allocations: 7.922 kB / 0.5582 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.1354, allocations: 4 kB / 0.5582 GB, free: 3.281 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1354, allocations: 4 kB / 0.5582 GB, free: 3.277 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.577e-05/0.1355, allocations: 23.98 kB / 0.5582 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002293/0.1357, allocations: 165.6 kB / 0.5584 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.136, allocations: 54.83 kB / 0.5585 GB, free: 2.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.672e-05/0.136, allocations: 28.78 kB / 0.5585 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000336/0.1364, allocations: 109.1 kB / 0.5586 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1364, allocations: 34.5 kB / 0.5586 GB, free: 2.781 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 1.352e-06/0.1364, allocations: 0 / 0.5586 GB, free: 2.781 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.1343/0.2707, allocations: 6.377 MB / 0.5648 GB, free: 12.36 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.2708, allocations: 55.41 kB / 0.5649 GB, free: 12.3 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.303e-05/0.2709, allocations: 101.8 kB / 0.565 GB, free: 12.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.693e-05/0.2709, allocations: 33.69 kB / 0.565 GB, free: 12.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.957e-05/0.2709, allocations: 88.14 kB / 0.5651 GB, free: 12.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.332e-05/0.271, allocations: 67.36 kB / 0.5652 GB, free: 11.99 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.2712, allocations: 89.59 kB / 0.5653 GB, free: 11.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.2714, allocations: 326.8 kB / 0.5656 GB, free: 11.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/0.2719, allocations: 223.8 kB / 0.5658 GB, free: 11.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.2725, allocations: 238.2 kB / 0.566 GB, free: 11.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.2746, allocations: 0.5551 MB / 0.5666 GB, free: 10.56 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2746, allocations: 0 / 0.5666 GB, free: 10.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00187/0.2764, allocations: 0.612 MB / 0.5672 GB, free: 9.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.2765, allocations: 4 kB / 0.5672 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2765, allocations: 3.984 kB / 0.5672 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.2765, allocations: 4 kB / 0.5672 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006219/0.2771, allocations: 103.8 kB / 0.5673 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.2771, allocations: 7.922 kB / 0.5673 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004222/0.2775, allocations: 23.97 kB / 0.5673 GB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.653e-05/0.2776, allocations: 36.12 kB / 0.5673 GB, free: 9.766 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.0001445/0.2777, allocations: 117.8 kB / 0.5674 GB, free: 9.641 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.475e-05/0.2778, allocations: 7.953 kB / 0.5674 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002133/0.2799, allocations: 0.7318 MB / 0.5682 GB, free: 8.895 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.28, allocations: 4 kB / 0.5682 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.28, allocations: 0 / 0.5682 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.28, allocations: 7.922 kB / 0.5682 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.2838, allocations: 1.152 MB / 0.5693 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2838, allocations: 0 / 0.5693 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005355/0.2844, allocations: 99.8 kB / 0.5694 GB, free: 7.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2844, allocations: 8.188 kB / 0.5694 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/0.2844, allocations: 23.95 kB / 0.5694 GB, free: 7.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2844, allocations: 4.469 kB / 0.5694 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2844, allocations: 0 / 0.5694 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.2861, allocations: 0.5922 MB / 0.57 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.539e-05/0.2862, allocations: 85.06 kB / 0.5701 GB, free: 6.801 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.2862, allocations: 4 kB / 0.5701 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.2866, allocations: 35.89 kB / 0.5701 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.303e-05/0.2867, allocations: 15.98 kB / 0.5701 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.2867, allocations: 35.89 kB / 0.5702 GB, free: 6.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.55e-05/0.2868, allocations: 79.28 kB / 0.5703 GB, free: 6.633 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2868, allocations: 0 / 0.5703 GB, free: 6.633 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001772/0.2885, allocations: 0.648 MB / 0.5709 GB, free: 5.984 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.004952/0.2935, allocations: 1.306 MB / 0.5722 GB, free: 4.629 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.2947, allocations: 446.4 kB / 0.5726 GB, free: 4.195 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2947, allocations: 4 kB / 0.5726 GB, free: 4.191 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005259/0.2952, allocations: 191.7 kB / 0.5728 GB, free: 4.004 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.2955, allocations: 12.31 kB / 0.5728 GB, free: 3.992 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.2985, allocations: 0.6202 MB / 0.5734 GB, free: 3.312 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.2989, allocations: 0.6965 MB / 0.5741 GB, free: 2.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003956/0.2992, allocations: 125.1 kB / 0.5742 GB, free: 2.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003436/0.2996, allocations: 107.3 kB / 0.5743 GB, free: 2.352 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2996, allocations: 0 / 0.5743 GB, free: 2.352 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/0.5993, allocations: 58.61 MB / 0.6315 GB, free: 10.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.813, allocations: 5.188 kB / 0.6315 GB, free: 10.06 MB / 446.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.836010541999713]