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.001622/0.001622, allocations: 121.8 kB / 18.5 MB, free: 4.578 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.002015/0.002015, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.47/1.47, allocations: 230.2 MB / 254.5 MB, free: 15.27 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.2285/0.2285, allocations: 46.89 MB / 357.4 MB, free: 10.5 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002184/0.002184, allocations: 79.86 kB / 0.4912 GB, free: 8.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1281, allocations: 65.99 MB / 0.5557 GB, free: 6.379 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.002005/0.1301, allocations: 0.5398 MB / 0.5562 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008705/0.131, allocations: 411.3 kB / 0.5566 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.298e-05/0.131, allocations: 0 / 0.5566 GB, free: 5.426 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.276e-05/0.1311, allocations: 7.875 kB / 0.5566 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.154e-05/0.1311, allocations: 0 / 0.5566 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.1316, allocations: 131.6 kB / 0.5567 GB, free: 5.289 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.147e-05/0.1317, allocations: 27.92 kB / 0.5568 GB, free: 5.262 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.158e-05/0.1318, allocations: 7.984 kB / 0.5568 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.762e-05/0.1318, allocations: 11.92 kB / 0.5568 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.1319, allocations: 15.92 kB / 0.5568 GB, free: 5.227 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.106e-05/0.1319, allocations: 4 kB / 0.5568 GB, free: 5.223 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003118/0.1322, allocations: 167.8 kB / 0.557 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.559e-05/0.1322, allocations: 3.984 kB / 0.557 GB, free: 5.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.1322, allocations: 15.88 kB / 0.557 GB, free: 5.039 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.1325, allocations: 127.6 kB / 0.5571 GB, free: 4.914 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1325, allocations: 0 / 0.5571 GB, free: 4.914 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1325, allocations: 4 kB / 0.5571 GB, free: 4.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.912e-06/0.1325, allocations: 0 / 0.5571 GB, free: 4.91 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.0005244/0.133, allocations: 371 kB / 0.5574 GB, free: 4.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.1331, allocations: 12.03 kB / 0.5575 GB, free: 4.488 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.065e-05/0.1331, allocations: 38.69 kB / 0.5575 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.1332, allocations: 4.938 kB / 0.5575 GB, free: 4.438 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.1333, allocations: 176.3 kB / 0.5577 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1333, allocations: 384 / 0.5577 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.743e-05/0.1334, allocations: 8.375 kB / 0.5577 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.1335, allocations: 54 kB / 0.5577 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1335, allocations: 4 kB / 0.5577 GB, free: 4.156 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.1335, allocations: 4 kB / 0.5577 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1335, allocations: 0 / 0.5577 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.871e-05/0.1336, allocations: 31.91 kB / 0.5578 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000214/0.1338, allocations: 169.7 kB / 0.5579 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.1341, allocations: 54.55 kB / 0.558 GB, free: 3.844 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.105e-05/0.1341, allocations: 21.14 kB / 0.558 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002954/0.1344, allocations: 109 kB / 0.5581 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.1345, allocations: 42.5 kB / 0.5581 GB, free: 3.645 MB / 414.1 MB Notification: Performance of pre-optimization done (n=9): time 9.92e-07/0.1345, allocations: 0 / 0.5581 GB, free: 3.645 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.1327/0.2671, allocations: 6.379 MB / 0.5644 GB, free: 13.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.2672, allocations: 59.41 kB / 0.5644 GB, free: 13.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.178e-05/0.2673, allocations: 101.8 kB / 0.5645 GB, free: 13.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.2673, allocations: 29.7 kB / 0.5646 GB, free: 13.01 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.2674, allocations: 84.14 kB / 0.5646 GB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.858e-05/0.2675, allocations: 71.42 kB / 0.5647 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.2677, allocations: 81.59 kB / 0.5648 GB, free: 12.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.2679, allocations: 326.8 kB / 0.5651 GB, free: 12.44 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005604/0.2685, allocations: 231.8 kB / 0.5653 GB, free: 12.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005649/0.269, allocations: 234.4 kB / 0.5655 GB, free: 11.99 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.2712, allocations: 0.5551 MB / 0.5661 GB, free: 11.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2712, allocations: 0 / 0.5661 GB, free: 11.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001895/0.273, allocations: 0.6116 MB / 0.5667 GB, free: 10.81 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.2731, allocations: 8 kB / 0.5667 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2731, allocations: 4 kB / 0.5667 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2731, allocations: 0 / 0.5667 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/0.2738, allocations: 103.8 kB / 0.5668 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.2738, allocations: 0 / 0.5668 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.2742, allocations: 23.95 kB / 0.5668 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.485e-05/0.2743, allocations: 35.94 kB / 0.5668 GB, free: 10.64 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.0001608/0.2744, allocations: 125.7 kB / 0.567 GB, free: 10.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.2745, allocations: 7.953 kB / 0.567 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002164/0.2767, allocations: 0.7245 MB / 0.5677 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.2767, allocations: 4 kB / 0.5677 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2767, allocations: 0 / 0.5677 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2767, allocations: 7.938 kB / 0.5677 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00412/0.2808, allocations: 1.153 MB / 0.5688 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2808, allocations: 4.188 kB / 0.5688 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005481/0.2814, allocations: 99.86 kB / 0.5689 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.2814, allocations: 4 kB / 0.5689 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.2814, allocations: 23.95 kB / 0.5689 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.136e-06/0.2814, allocations: 8.406 kB / 0.569 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2814, allocations: 0 / 0.569 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.2831, allocations: 0.5891 MB / 0.5695 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.577e-05/0.2832, allocations: 93 kB / 0.5696 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.358e-05/0.2832, allocations: 8 kB / 0.5696 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.2836, allocations: 31.89 kB / 0.5697 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.2837, allocations: 15.98 kB / 0.5697 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.684e-05/0.2837, allocations: 31.95 kB / 0.5697 GB, free: 7.578 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.687e-05/0.2838, allocations: 83.22 kB / 0.5698 GB, free: 7.496 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2838, allocations: 4 kB / 0.5698 GB, free: 7.492 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001665/0.2855, allocations: 0.6519 MB / 0.5704 GB, free: 6.84 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.004944/0.2904, allocations: 1.302 MB / 0.5717 GB, free: 5.488 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.2916, allocations: 439.5 kB / 0.5721 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2916, allocations: 0 / 0.5721 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.2921, allocations: 202.7 kB / 0.5723 GB, free: 4.863 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.2924, allocations: 20.5 kB / 0.5723 GB, free: 4.848 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.2956, allocations: 0.6124 MB / 0.5729 GB, free: 4.176 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.296, allocations: 0.6964 MB / 0.5736 GB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004821/0.2965, allocations: 128.9 kB / 0.5737 GB, free: 3.316 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000307/0.2968, allocations: 95.28 kB / 0.5738 GB, free: 3.223 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2968, allocations: 0 / 0.5738 GB, free: 3.223 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3044/0.6011, allocations: 58.58 MB / 0.631 GB, free: 11.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/9.003, allocations: 4.531 kB / 0.631 GB, free: 11.29 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.008956068195403]